Skip to content

IsVideoDeviceConnected

function

Delphi
function IsVideoDeviceConnected (DeviceIndex: LongInt): Boolean;
C++Builder
bool __fastcall IsVideoDeviceConnected(System::LongInt DeviceIndex);
C#
public bool IsVideoDeviceConnected(int DeviceIndex);
VB.NET
Public Function IsVideoDeviceConnected(DeviceIndex As Integer) As Boolean
C++/Qt
BOOL IsVideoDeviceConnected (int DeviceIndex);

Returns true if the video capture device specified by its index (in the VideoDevices list) is connected.

Returns false if the device has been disconnected.