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 ();
Returns a string that contains the list of the registry identifiers of the 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 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 VideoDevicesId list), e.g.:
ComboBox1.Items.Text := VideoGrabber1.VideoDevicesId;
ComboBox1.ItemIndex := VideoGrabber1.VideoDevice;
To retrieve the index of a video capture device programmatically, use the FindIndexInListByName function:
VideoGrabber.VideoDevice := VideoGrabber.FindIndexInListByName (VideoGrabber.VideoDevicesId, 'devicepnpavcjvcgr-dvl357egcamcorderdvb301b00005888000{65e8773d-8f56-11d0-a3b9-00a0c9223196}globalMicrosoft DV Camera and VCR', false, true);