#include <IAgoraRtcEngine.h>
Video device collection methods.
The IVideoDeviceCollection interface class gets the video device information.
◆ ~IVideoDeviceCollection()
| virtual agora::rtc::IVideoDeviceCollection::~IVideoDeviceCollection |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ getCount()
| virtual int agora::rtc::IVideoDeviceCollection::getCount |
( |
| ) |
|
|
pure virtual |
Gets the total number of the indexed video devices in the system.
- Returns
- Total number of the indexed video devices:
◆ getDevice()
| virtual int agora::rtc::IVideoDeviceCollection::getDevice |
( |
int |
index, |
|
|
char |
deviceName[MAX_DEVICE_ID_LENGTH], |
|
|
char |
deviceId[MAX_DEVICE_ID_LENGTH] |
|
) |
| |
|
pure virtual |
Gets a specified piece of information about an indexed video device.
- Parameters
-
| index | The specified index of the video device that must be less than the return value of getCount. |
| deviceName | Pointer to the video device name. |
| deviceId | Pointer to the video device ID. |
- Returns
- 0: Success.
- < 0: Failure.
◆ setDevice()
| virtual int agora::rtc::IVideoDeviceCollection::setDevice |
( |
const char |
deviceId[MAX_DEVICE_ID_LENGTH] | ) |
|
|
pure virtual |
Sets the device with the device ID.
- Parameters
-
| deviceId | Device ID of the device. |
- Returns
- 0: Success.
- < 0: Failure.
◆ release()
| virtual void agora::rtc::IVideoDeviceCollection::release |
( |
| ) |
|
|
pure virtual |