#include <nertc_video_device_manager.h>
Video device management method.
IVideoDeviceManager interface class provides related interfaces for video device management. Gets IVideoDeviceManager interface through instantiating the IVideoDeviceManager class.
◆ enumerateCaptureDevices()
Gets the list of all video capturing devices in the system.
The method returns an IDeviceCollection object that includes all Video capturing devices in the system. Enumerates capturing devices with the App through the IDeviceCollection object.
- 注解
- After the method is used, the App needs to destroy the returned object.
- 返回
- Success: An IDeviceCollection object includes all Video capturing devices.
- Failure: Null.
◆ getDevice()
virtual int nertc::IVideoDeviceManager::getDevice |
( |
char |
device_id[kNERtcMaxDeviceIDLength] | ) |
|
|
pure virtual |
Gets the ID of the Video capturing device that is currently used.
- 参数
-
device_id | The audio capture device. |
- 返回
- 0: Success.
- Other values: Failure.
◆ setDevice()
virtual int nertc::IVideoDeviceManager::setDevice |
( |
const char |
device_id[kNERtcMaxDeviceIDLength] | ) |
|
|
pure virtual |
Specifies the video capturing device.
- 参数
-
device_id | The ID of video capturing devices. You can get the ID through the enumerateCaptureDevices method. |
- 返回
- 0: Success.
- Other values: Failure.
该类的文档由以下文件生成: