#include <NGIAgoraVideoDeviceManager.h>
Inherits agora::RefCountInterface.
Inherited by agora::rtc::INGVideoDeviceManagerEx.
◆ ~INGVideoDeviceManager()
| agora::rtc::INGVideoDeviceManager::~INGVideoDeviceManager |
( |
| ) |
|
|
inlineprotected |
◆ registerObserver()
Registers an IVideoDeviceManagerObserver object.
You need to implement the IAudioDeviceManageObserver class in this method, and register callbacks according to your scenario.
- Parameters
-
- Returns
- 0: Success.
- < 0: Failure.
◆ unregisterObserver()
◆ getNumberOfDevices()
| virtual int agora::rtc::INGVideoDeviceManager::getNumberOfDevices |
( |
| ) |
|
|
pure virtual |
Gets the number of video devices.
- Returns
- The number of video devices.
◆ getNumberOfCapabilities()
| virtual int agora::rtc::INGVideoDeviceManager::getNumberOfCapabilities |
( |
const char * | deviceId | ) |
|
|
pure virtual |
Gets the number of capabilities.
- Parameters
-
- Returns
- The number of capabilities.
◆ getCapability()
| virtual int agora::rtc::INGVideoDeviceManager::getCapability |
( |
const char * | deviceId, |
|
|
const uint32_t | capabilityIndex, |
|
|
VideoFormat & | capability ) |
|
pure virtual |
Gets the capability of a specified device.
- Parameters
-
| deviceId | The device ID. |
| capabilityIndex | The capability index of the device. |
| capability | The reference to the video capability. See VideoFormat. |
- Returns
- The capability of the device.
◆ getDeviceInfo()
| virtual int agora::rtc::INGVideoDeviceManager::getDeviceInfo |
( |
int | index, |
|
|
VideoDeviceInfo & | deviceInfo ) |
|
pure virtual |
Gets the device information.
- Parameters
-
| index | The index of the device. |
| deviceInfo | The device information. |
- Returns
- 0: Success.
- < 0: Failure.