NERtc Unity SDK  V4.5.907
Public Member Functions | List of all members
nertc.IVideoDeviceManager Class Referenceabstract
Inheritance diagram for nertc.IVideoDeviceManager:

Public Member Functions

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

Detailed Description

Video device management method.
The interface class provides related interfaces for video device management. Gets IVideoDeviceManager interface by the IRtcEngine class. The interface class is supported on Windows and macOS only and unavailable for Android and iOS.

Member Function Documentation

◆ EnumerateCaptureDevices()

abstract 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.

Note
After the method is used, the App needs to destroy the returned object.
Returns
  • Success: An IDeviceCollection object includes all Video capturing devices.
  • Failure: Null.

◆ SetDevice()

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

Specifies the video capturing device.

Parameters
deviceIdThe ID of video capturing devices. You can get the ID through the EnumerateCaptureDevices method.
Returns
  • 0: Success.
  • Other values: Failure.

◆ GetDevice()

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

Gets the ID of the Video capturing device that is currently used.

Parameters
deviceIdThe audio capture device.
Returns
  • 0: Success.
  • Other values: Failure.

The documentation for this class was generated from the following file: