VideoDeviceIndex
Delphi
function VideoDeviceIndex (Value: string): LongInt;
C++Builder
System::LongInt __fastcall VideoDeviceIndex(System::UnicodeString Value);
C#
public int VideoDeviceIndex(string Value);
VB.NET
Public Function VideoDeviceIndex(Value As String) As Integer
C++/Qt
int VideoDeviceIndex (wchar_t *Value);
Returns the index of a given video device in the VideoDevices list. The function accepts wildcards, e.g.:
VideoGrabber1.VideoDevice := VideoGrabber1.VideoDeviceIndex ('Microsoft DV Camera and VCR (WDM)'); // selects the "Microsoft DV Camera and VCR (WDM)" video device.
VideoGrabber1.VideoDevice := VideoGrabber1.VideoDeviceIndex ('Microsoft DV Camera*'); // selects the 1st video device that begins with "Microsoft DV Camera".
VideoGrabber1.VideoDevice := VideoGrabber1.VideoDeviceIndex ('*DV Camera*'); // selects the 1st video device that contains "DV Camera".