Platform : Windows 10, Windows 8, Vista, Windows 7, XP
For Windows Developers who need to video capture and Live Streaming to Facebook Live, Youtube Live, Twitch or Wowza Media Server with C#, VB.NET, VB6, VFP, Delphi, C++ .
Step 1: Install the VideoCap Live SDK ActiveX, begin by launching the setup file (http://www.viscomsoft.com/demo/videocaplivesetup.exe). Select the desired installation folder for the VideoCap Live SDK ActiveX and continue with the installation on your development computer.
Step 2: On your Facebook profile or page you manage, click on Live Video.
Step 3: When the Live Video window shows up, click on Connect.
Step 4: Now we are presented with the information we need for our VideoCap Live SDK ActiveX:
Step 5: Create New Visual C# Project, select Windows Application.
Step 6: The next step is to install VideoCap Live ActiveX in ToolBox. Select Toolbox, select Components item, right click mouse button, select Choose Items...
Step 7: Now you will see the VideoCap Live ActiveX 's icon on toolbox, drag it to form.
Step 8 :Add buttons on form. In button click event add the following code. You should change the correct RTMPUrl value and IP Camera URL.
int iResult;
axVideoCap1.BroadCast = true;
axVideoCap1.BroadCastType = 1;
axVideoCap1.RTMPUrl ="rtmp://live-api.facebook.com:80/rtmp/1699879430126215?ds=1&a=ATgsG4YmW1k9fTAl";
axVideoCap1.RTMPVideoBitrate =1000000;
axVideoCap1.RTMPAudioBitrate = 96000;
axVideoCap1.RTMPH264Profile = (short)0;
axVideoCap1.RTMPAudioSamples = 48000;
axVideoCap1.EffectType = VIDEOCAPLib.MYVIDEOCAPEFFECTTYPE.OVERLAY;
iResult = axVideoCap1.StartIPCameraToRTMP("http://138.26.107.148:80/mjpg/video.mjpg", "", "");
Step 9: Once you've click button, your Facebook Live window will show a PREVIEW. If Facebook Live is not receiving enough video to maintain smooth streaming, you may try decrease the videobitrate .
Step 10: Enter your post details as well as an optional Title and Video Game title, then click Go Live.