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

Public Member Functions

abstract ushort GetCount ()
 
abstract int GetDevice (ushort index, out string deviceName, out string deviceId)
 
abstract int GetDeviceInfo (ushort index, ref RtcDeviceInfo deviceInfo)
 
abstract void Destroy ()
 

Detailed Description

Device-related methods.
The interface class gets device-related information.

Member Function Documentation

◆ GetCount()

abstract ushort nertc.IDeviceCollection.GetCount ( )
pure virtual

Gets the number of devices.

Note
You must call EnumeratePlayoutDevices or EnumeratePlayoutDevices before calling the method to get the number of playing and capturing devices.
Returns
The number of capturing and playback devices.

◆ GetDevice()

abstract int nertc.IDeviceCollection.GetDevice ( ushort  index,
out string  deviceName,
out string  deviceId 
)
pure virtual

Gets the device information of the specified index.

Parameters
indexspecifies the device information that you want to check. The value must be lower than the value returned by GetCount.
deviceNameDevice name.
deviceIdDevice ID.
Returns
  • 0: Success.
  • Other values: Failure.

◆ GetDeviceInfo()

abstract int nertc.IDeviceCollection.GetDeviceInfo ( ushort  index,
ref RtcDeviceInfo  deviceInfo 
)
pure virtual

Searches specified information about index-related devices.

Note
The link method of returnable devices and the non-useful status determined by the SDK.
Parameters
indexspecifies the device information that you want to check.
deviceInfoFor information about device information, see RtcDeviceInfo.
Returns
  • 0: Success.
  • Other values: Failure.

◆ Destroy()

abstract void nertc.IDeviceCollection.Destroy ( )
pure virtual

Releases all IDeviceCollection resources.


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