IVideoDeviceCollection

You can get the information of video devices with this interface.

getCount

Gets the total number of the indexed video devices in the system.

virtual int getCount() = 0;

Returns

The total number of the indexed video devices in the system.

getDevice

Gets a specified piece of information about an indexed video device.

virtual int getDevice(int index, 
     char deviceName[MAX_DEVICE_ID_LENGTH], 
     char deviceId[MAX_DEVICE_ID_LENGTH]) = 0;

Parameters

index
The index value of the video device. The value of this parameter must be less than the value returned in getCount.
deviceName
The device name. The maximum length is MAX_DEVICE_ID_LENGTH_TYPE.
deviceId
The device ID of the video device. The maximum length is MAX_DEVICE_ID_LENGTH_TYPE.

Returns

  • 0: Success.
  • < 0: Failure.

setDevice

Specifies a device with the device ID.

virtual int setDevice(const char deviceId[MAX_DEVICE_ID_LENGTH]) = 0;

Parameters

deviceId
The device ID. The maximum length is MAX_DEVICE_ID_LENGTH_TYPE. Connecting or disconnecting the audio device does not change the value of deviceId.

Returns

  • 0: Success.
  • < 0: Failure.