NERtc Windows SDK  V4.4.301
Public 成员函数 | 所有成员列表
nertc::IVideoDeviceManager类 参考abstract

#include <nertc_video_device_manager.h>

Public 成员函数

virtual IDeviceCollectionenumerateCaptureDevices ()=0
 
virtual int setDevice (const char device_id[kNERtcMaxDeviceIDLength])=0
 
virtual int getDevice (char device_id[kNERtcMaxDeviceIDLength])=0
 

详细描述

Video device management method.

IVideoDeviceManager interface class provides related interfaces for video device management. Gets IVideoDeviceManager interface through instantiating the IVideoDeviceManager class.

成员函数说明

◆ enumerateCaptureDevices()

virtual IDeviceCollection* nertc::IVideoDeviceManager::enumerateCaptureDevices ( )
pure virtual

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_idThe 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_idThe ID of video capturing devices. You can get the ID through the enumerateCaptureDevices method.
返回
  • 0: Success.
  • Other values: Failure.

该类的文档由以下文件生成: