Media Information

The RadWebCam API allows you to get information about the connected devices (cameras) and change the control's device and video format based on this.


The MediaFoundationDeviceInfo object provides information about the connected device. This object is used by the control to read video.


The MediaFoundationVideoFormatInfo object provides information about the video format used by the connected camera.

Get Video Capture Devices

To get the available video capture devices (cameras), use the RadWebCam.GetVideoCaptureDevices static method.

Example 1: Getting the available cameras

ReadOnlyCollection<MediaFoundationDeviceInfo> videoDevices = RadWebCam.GetVideoCaptureDevices(); 

Get Video Formats

To get the available video file formats for the connected device, you can use the RadWebCam.GetVideoFormats static method.

Example 2: Getting the available video formats

ReadOnlyCollection<MediaFoundationDeviceInfo> videoDevices = RadWebCam.GetVideoCaptureDevices(); 
ReadOnlyCollection<MediaFoundationVideoFormatInfo> videoFormats = RadWebCam.GetVideoFormats(videoDevices[0]); 

See Also

In this article
Not finding the help you need? Improve this article