Skip to content

VideoDevicesId

property, read-only

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

Used to retrieve a string that contains the list of the registry identifiers of video capture devices available on the current platform. Unlike VideoDevices, VideoDevicesId returns the unique registry names of the video capture devices. This is useful mainly to distinguish between several video capture devices of the same brand and model on the same platorm. 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.VideoDevicesId; ComboBox1.ItemIndex := VideoGrabber1.VideoDevice; (index in the VideoDevicesId 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.VideoDevicesId, 'devicepnpavcjvcgr-dvl357egcamcorderdvb301b00005888000{65e8773d-8f56-11d0-a3b9-00a0c9223196}globalMicrosoft DV Camera and VCR', false, true). Note: for Delphi and C++Builder versions of the component, this property is available as a VideoDevices global variable.