Skip to content

VideoDevices

property, read-only

Delphi
property VideoDevices: string read GetVideoDevices;
C++Builder
__property System::UnicodeString VideoDevices = {read=GetVideoDevices};
C#
public string VideoDevices { get; }
VB.NET
Public ReadOnly Property VideoDevices As String
C++/Qt
wchar_t *GetVideoDevices ();

Used to retrieve a string that contains the list of video capture devices available on the current platform.

This list is updated if a video capture device is connected or removed (when the OnDeviceArrivalOrRemoval event occurs).

This list can be assigned to list based controls. E.g.:

ComboBox1.Items.Text := VideoGrabber1.VideoDevices; ComboBox1.ItemIndex := VideoGrabber1.VideoDevice; ( index in the VideoDevices list)

It is possible to retrieve programmatically the index of a Video capture device by using the FindIndexInListByName function as follows:

VideoGrabber.VideoDevice := VideoGrabber.FindIndexInListByName (VideoGrabber.VideoDevices, 'name of my Video device', false, true);

Note: in Delphi and C++Builder versions of the component, this property is available as a VideoDevices global variable.