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

#include <nertc_device_collection.h>

Public 成员函数

virtual uint16_t getCount ()=0
 
virtual int getDevice (uint16_t index, char device_name[kNERtcMaxDeviceNameLength], char device_id[kNERtcMaxDeviceIDLength])=0
 
virtual int getDeviceInfo (uint16_t index, NERtcDeviceInfo *device_info)=0
 
virtual void destroy ()=0
 

详细描述

Device-related methods.

The interface class gets device-related information.

成员函数说明

◆ destroy()

virtual void nertc::IDeviceCollection::destroy ( )
pure virtual

Releases all IDeviceCollection resources.

◆ getCount()

virtual uint16_t nertc::IDeviceCollection::getCount ( )
pure virtual

Gets the number of devices.

注解
You must call enumeratePlayoutDevices or enumerateRecordDevices before calling the method to get the number of playing and capturing devices.
返回
The number of capturing and playback devices.

◆ getDevice()

virtual int nertc::IDeviceCollection::getDevice ( uint16_t  index,
char  device_name[kNERtcMaxDeviceNameLength],
char  device_id[kNERtcMaxDeviceIDLength] 
)
pure virtual

Gets the device information of the specified index.

参数
indexspecifies the device information that you want to check. The value must be lower than the value returned by getCount.
device_nameDevice name.
device_idDevice ID.
返回
  • 0: Success.
  • Other values: Failure.

◆ getDeviceInfo()

virtual int nertc::IDeviceCollection::getDeviceInfo ( uint16_t  index,
NERtcDeviceInfo device_info 
)
pure virtual

Searches specified information about index-related devices.

注解
The link method of returnable devices and the non-useful status determined by the SDK.
参数
indexspecifies the device information that you want to check.
device_infoFor information about device information, see NERtcDeviceInfo.
返回
  • 0: Success.
  • Other values: Failure.

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