NERtc Unity SDK  V4.5.907
Public 成员函数 | 所有成员列表
nertc.IVideoDeviceManager类 参考abstract
类 nertc.IVideoDeviceManager 继承关系图:

Public 成员函数

abstract IDeviceCollection EnumerateCaptureDevices ()
 
abstract int SetDevice (string deviceId)
 
abstract int GetDevice (out string deviceId)
 

详细描述

视频设备管理方法。
此接口类提供用于管理视频设备的相关接口。 可通过 IRtcEngine 类来获取 IVideoDeviceManager 接口。该接口类只支持 Windows 和 macOS 系统,不支持 Android 和 iOS 系统。

成员函数说明

◆ EnumerateCaptureDevices()

abstract IDeviceCollection nertc.IVideoDeviceManager.EnumerateCaptureDevices ( )
pure virtual

获取系统中所有的视频采集设备列表。
该方法返回一个 IDeviceCollection 对象,包含系统中所有的音频采集设备。通过 IDeviceCollection 对象,App 可以枚举视频采集设备。

注解
在使用结束后,App 需调用 Destroy 方法销毁返回的对象。
返回
  • 方法调用成功:一个 IDeviceCollection 对象,包含所有的视频采集设备。
  • 方法调用失败:NULL 。

◆ SetDevice()

abstract int nertc.IVideoDeviceManager.SetDevice ( string  deviceId)
pure virtual

指定视频采集设备。

参数
deviceId视频采集设备的设备 ID。可以通过 EnumerateCaptureDevices 获取。
返回
  • 0:方法调用成功;
  • 其他: 方法调用失败。

◆ GetDevice()

abstract int nertc.IVideoDeviceManager.GetDevice ( out string  deviceId)
pure virtual

获取当前使用的视频采集设备信息。

参数
deviceId视频采集设备的设备 ID。
返回
  • 0:方法调用成功;
  • 其他: 方法调用失败。

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