Unity Video SDK API Reference Documentation
Loading...
Searching...
No Matches
ZMVideoSDKAudioHelper Class Reference

Audio control interface SeeZMVideoSDK#GetAudioHelper(). More...

Public Member Functions

void StartAudio (Action< ZMVideoSDKErrors > callback)
 Start audio with voip.
 
void StopAudio (Action< ZMVideoSDKErrors > callback)
 Stop voip.
 
void UnMuteAudio (ZMVideoSDKUser user, Action< ZMVideoSDKErrors > callback)
 Unmute user's voip audio.
 
void MuteAudio (ZMVideoSDKUser user, Action< ZMVideoSDKErrors > callback)
 Mute user's voip audio. 0 means current user (myself).
 
List< ZMVideoSDKSpeakerDeviceGetSpeakerList ()
 Get speaker device list.
 
List< ZMVideoSDKMicDeviceGetMicList ()
 Get mic device list.
 
ZMVideoSDKErrors SelectSpeaker (string deviceID, string deviceName)
 Select a speaker device as default device.
 
ZMVideoSDKErrors SelectMic (string deviceID, string deviceName)
 Select a microphone device as default device.
 
void Subscribe (Action< ZMVideoSDKErrors > callback)
 Subscribe audio raw data.
 
void UnSubscribe (Action< ZMVideoSDKErrors > callback)
 UnSubscribe audio raw data.
 

Detailed Description

Audio control interface SeeZMVideoSDK#GetAudioHelper().

Definition at line 8 of file ZMVideoSDKAudioHelper.cs.

Member Function Documentation

◆ GetMicList()

List< ZMVideoSDKMicDevice > ZMVideoSDKAudioHelper.GetMicList ( )
inline

Get mic device list.

Returns
If the function succeeds, the return value is ZMVideoSDKMicDevice mic device list, Otherwise NULL.

Definition at line 96 of file ZMVideoSDKAudioHelper.cs.

97 {
98 return _videoSDKAudioHelper.GetMicList();
99 }

◆ GetSpeakerList()

List< ZMVideoSDKSpeakerDevice > ZMVideoSDKAudioHelper.GetSpeakerList ( )
inline

Get speaker device list.

Returns
If the function succeeds, the return value is ZMVideoSDKSpeakerDevice speaker device list, Otherwise NULL.

Definition at line 86 of file ZMVideoSDKAudioHelper.cs.

87 {
88 return _videoSDKAudioHelper.GetSpeakerList();
89 }

◆ MuteAudio()

void ZMVideoSDKAudioHelper.MuteAudio ( ZMVideoSDKUser  user,
Action< ZMVideoSDKErrors callback 
)
inline

Mute user's voip audio. 0 means current user (myself).

Parameters
userThe user which you want to mute.
Returns
If the function succeeds, the return value is ZoomVideoSDKErrors_Success. Otherwise failed. To get extended error information, see ZMVideoSDKErrors enum.

Definition at line 76 of file ZMVideoSDKAudioHelper.cs.

77 {
78 _videoSDKAudioHelper.MuteAudio(user, callback);
79 }

◆ SelectMic()

ZMVideoSDKErrors ZMVideoSDKAudioHelper.SelectMic ( string  deviceID,
string  deviceName 
)
inline

Select a microphone device as default device.

Parameters
deviceIDDevice id.
deviceNameDevice name.
Returns
If the function succeeds, the return value is ZMVideoSDKErrors_Success. Otherwise failed. To get extended error information, see ZMVideoSDKErrors enum.

Definition at line 120 of file ZMVideoSDKAudioHelper.cs.

121 {
122 return _videoSDKAudioHelper.SelectMic(deviceID, deviceName);
123 }

◆ SelectSpeaker()

ZMVideoSDKErrors ZMVideoSDKAudioHelper.SelectSpeaker ( string  deviceID,
string  deviceName 
)
inline

Select a speaker device as default device.

Parameters
deviceIDDevice id.
deviceNameDevice name.
Returns
If the function succeeds, the return value is ZMVideoSDKErrors_Success. Otherwise failed. To get extended error information, see ZMVideoSDKErrors enum.

Definition at line 108 of file ZMVideoSDKAudioHelper.cs.

109 {
110 return _videoSDKAudioHelper.SelectSpeaker(deviceID, deviceName);
111 }

◆ StartAudio()

void ZMVideoSDKAudioHelper.StartAudio ( Action< ZMVideoSDKErrors callback)
inline

Start audio with voip.

Parameters
[out]callbacka callback function to return the ZMVideoSDKErrors status code of this method.

Definition at line 46 of file ZMVideoSDKAudioHelper.cs.

47 {
48 _videoSDKAudioHelper.StartAudio(callback);
49 }

◆ StopAudio()

void ZMVideoSDKAudioHelper.StopAudio ( Action< ZMVideoSDKErrors callback)
inline

Stop voip.

Parameters
[out]callbacka callback function to return the ZMVideoSDKErrors status code of this method.

Definition at line 55 of file ZMVideoSDKAudioHelper.cs.

56 {
57 _videoSDKAudioHelper.StopAudio(callback);
58 }

◆ Subscribe()

void ZMVideoSDKAudioHelper.Subscribe ( Action< ZMVideoSDKErrors callback)
inline

Subscribe audio raw data.

Parameters
[out]callbacka callback function to return the ZMVideoSDKErrors status code of this method.

Definition at line 129 of file ZMVideoSDKAudioHelper.cs.

130 {
131 _videoSDKAudioHelper.Subscribe(callback);
132 }

◆ UnMuteAudio()

void ZMVideoSDKAudioHelper.UnMuteAudio ( ZMVideoSDKUser  user,
Action< ZMVideoSDKErrors callback 
)
inline

Unmute user's voip audio.

Parameters
userThe user which you want to unMute.
[out]callbacka callback function to return the ZMVideoSDKErrors status code of this method.

Definition at line 65 of file ZMVideoSDKAudioHelper.cs.

66 {
67 _videoSDKAudioHelper.UnMuteAudio(user, callback);
68 }

◆ UnSubscribe()

void ZMVideoSDKAudioHelper.UnSubscribe ( Action< ZMVideoSDKErrors callback)
inline

UnSubscribe audio raw data.

Parameters
[out]callbacka callback function to return the ZMVideoSDKErrors status code of this method.

Definition at line 138 of file ZMVideoSDKAudioHelper.cs.

139 {
140 _videoSDKAudioHelper.UnSubscribe(callback);
141 }