Using the Video Control

[This is preliminary documentation and subject to change.]

The Microsoft® ActiveX® control for video (the Video control) is a dual-interface ActiveX control. This functionality means you can use the control from a variety of programming environments, such as World Wide Web pages, applications built in the Microsoft® Visual Basic® development system, Java applets and applications, and C++ applications.

For details on working with the Video control to display video streams, manage devices, and interact with the Video Access server, see:

For additional information on the tasks involved in using the Video control, see Displaying Video. In addition, Broadcast Architecture material includes sample applications that demonstrate use of the Video control. To locate these samples, see Broadcast Architecture Sample Applications.

Note  If you are displaying the Video control in a window that does not set have the WS_CLIPCHILDREN style set, the Video display may not refresh properly.

This is of concern to developers programming in C++ using the Microsoft® Foundation Classes (MFC). By default, MFC windows do not set the WS_CLIPCHILDREN style. To cause the Video control to refresh properly in these applications you can either override CWnd::PreCreateWindow to set this style, or paint the correct color key during the call to CWnd::OnEraseBkgnd. The correct color key value can be obtained from BPCVid.ColorKey.

To locate more information about the WS_CLIPCHILDREN window style and the CWnd::PreCreateWindow and CWnd::OnEraseBkgnd methods, see Further Information on Streaming Video Services for the Client.