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 ();

Returns 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 (VideoDevice is the index in the VideoDevices list), e.g.:

ComboBox1.Items.Text := VideoGrabber1.VideoDevices;
ComboBox1.ItemIndex := VideoGrabber1.VideoDevice;

To retrieve the index of a video capture device programmatically, use the FindIndexInListByName function:

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