VideoDeviceIndexFromId
TVideoGrabber.VideoDeviceIndexFromId |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns the index of a given video device in the VideoDevicesId list
Declaration
function VideoDeviceIndexFromId(Value: String): LongInt;
int __fastcall VideoDeviceIndexFromId(wchar_t *Value)
Function VideoDeviceIndexFromId(param1 As String) As Long
Description
Used to retrieve the index of a given video device in the VideoDevicesId list.
This lets select the device by its hardware identifier rather than its manufacturer name.
E.g.:
VideoGrabber1.VideoDevice := VideoDeviceIndexFromId ('devicepnpusbvid046dpid0826mi02739103c9a0000265e8773d-8f56-11d0-a3b9-00a0c9223196globalHD Webcam C525');
See Also
WDM drivers AutoConnectRelatedPins CurrentFrameRate DeliveredFrames DroppedFrames FixFlickerOrBlackCapture IsDVDevice IsVideoControlAvailable IsVideoCrossbarAvailable IsVideoDeviceConnected IsWDMVideoDriver OnNoVideoDevices OnVideoDeviceSelected RefreshDevicesAndCompressorsLists ResetVideoDeviceSettings ShowDialog VideoDevice VideoDeviceIndex VideoDeviceName VideoDevices VideoDevicesCount VideoDevicesId WebcamStillCaptureButton