Skip to main content

Code sample - Network streaming using WMV format (external profile)

Delphi and C# (ActiveX) sample code.

You can broadcast video via the network using the Windows Media Video format. You can simultaneously capture video and convert it to a file.

You should specify the WMV profile with the video encoder settings, the maximum number of clients, and the port.

VideoCapture1.Network_Streaming_Enabled := true;
VideoCapture1.Network_Streaming_WMV_Profile_FileName := edNetworkStreamingWMVProfile.Text;
VideoCapture1.Network_Streaming_Maximum_Clients := StrToInt(edMaximumClients.Text);
VideoCapture1.Network_Streaming_Network_Port := StrToInt(edNetworkPort.Text);
VideoCapture1.Network_Streaming_Enabled = true;
VideoCapture1.Network_Streaming_WMV_Profile_FileName = edNetworkStreamingWMVProfile.Text;
VideoCapture1.Network_Streaming_Maximum_Clients = Convert.ToInt32(edMaximumClients.Text);
VideoCapture1.Network_Streaming_Network_Port = Convert.ToUInt32(edNetworkPort.Text);

The Network_Streaming_URL property contains the URL you can use to connect to watch the video via the network using Windows Media Player or another application supporting this feature.


Please get in touch with support to get help with this tutorial. Visit our GitHub page to get more code samples.