# Media Information

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

## MediaFoundationDeviceInfo

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

## MediaFoundationVideoFormatInfo

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.

#### Getting the available cameras

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

```

```VB.NET
Dim videoDevices As ReadOnlyCollection(Of MediaFoundationDeviceInfo) = RadWebCam.GetVideoCaptureDevices()
```

## Get Video Formats

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

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

```

```VB.NET
Dim myVideoDevices As ReadOnlyCollection(Of MediaFoundationDeviceInfo) = RadWebCam.GetVideoCaptureDevices() 
Dim videoFormats As ReadOnlyCollection(Of MediaFoundationVideoFormatInfo) = RadWebCam.GetVideoFormats(videoDevices(0))
```

## See Also

* [Commands](https://www.telerik.com/products/winforms/documentation/controls/webcam/features/commands)
* [Snapshots](https://www.telerik.com/products/winforms/documentation/controls/webcam/features/snapshots)
* [Video Recording](https://www.telerik.com/products/winforms/documentation/controls/webcam/features/recording-video)
* [Settings Dialog](https://www.telerik.com/products/winforms/documentation/controls/webcam/features/camera-settings-dialog)
* [Errors](https://www.telerik.com/products/winforms/documentation/controls/webcam/features/errors)
