A class to operate the audio action.
More...
#include <ZoomVideoSDKAudioHelper.h>
Inherits NSObject.
A class to operate the audio action.
Definition at line 35 of file ZoomVideoSDKAudioHelper.h.
◆ allowAudioUnmutedBySelf:
Allow the others to unmute themselves or not.
- Parameters
-
allowUnmute | Yes means allow the user to unmute themself, otherwise NO. |
- Returns
- The result of it.
- Warning
- Only host or manager can chagne this property.
◆ cleanAudioSession
- (void) cleanAudioSession |
|
|
|
Clean Audio Session including Category and Mode.
- Warning
- SDK will restore audio session status after session end. if developer call overrideOutputAudioPort interface wtth AVAudioSessionPortBuiltInSpeaker in AVAudioSessionCategoryPlayAndRecord Category before join session, then sdk can not restore audio session BuiltInSpeaker output when session end,.
- Deprecated
- No longer maintain anymore!
◆ getAvailableAudioInputsDevice
Get the available audio input devices, please refer toAVAudioSessionPortDescription}.
- Returns
- Return the array of available audio input session port description.
◆ getAvalibleAudioOutputRoute
Get avalible audio output port description,AVAudioSessionPortDescription}..
- Returns
- Return the avalible audio outout port description list.
◆ getCurrentAudioInputDevice
Get the current audio input device, please refer toAVAudioSessionPortDescription}.
- Returns
- Return the current audio input session port description.
◆ getCurrentAudioOutputRoute
Get currently audio output port description,AVAudioSessionPortDescription}.
- Returns
- Return the current audio outout port description.
◆ muteAllAudio:
Mute all user's VOIP audio except my self.
- Parameters
-
allowUnmute | Yes means allow the user to unmute themself, otherwise NO. |
- Returns
- The result of it.
- Warning
- Only host or manager can mute all user's audio.
◆ muteAudio:
Mute user's audio.
- Returns
- The result of it.
- Warning
- If mute self use userid=0.
-
Only host or manager can mute others audio.
◆ resetAudioSession
- (BOOL) resetAudioSession |
|
|
|
Reset Audio Session including Category and Mode for ZoomVideoSDK Audio Session Environment When developer change audio session in session.
- Returns
- Yes means set auidio success, otherwise failed.
- Deprecated
- Use setSDKAudioSessionEnv instead.
◆ setAudioInputDevice:
Change the audio input device.
- Parameters
-
device | the audio input device want to change to, please refer toAVAudioSessionPortDescription}. |
- Returns
- YES means change audio input device success, otherwise failed.
◆ setAudioOutputRoute:
Set audio output device, please refer toZoomVideoSDKAudioDevice}.
- Parameters
-
device | The device port type want to set. |
- Returns
- YES mean the set audio out put route success, otherwise failed.
◆ setSDKAudioSessionEnv
- (BOOL) setSDKAudioSessionEnv |
|
|
|
Set the AVAudio Session Environment for Zoom Video SDK Session.
- Warning
- Developer change AVAudio Session by self special needs in SDK session,will cause the audio output abnormal. Then developer can set SDK AVAudio Session environment.
- Returns
- Yes means set audio success, otherwise failed.
◆ showAudioOutputDeviceAirPlayPicker:
- (BOOL) showAudioOutputDeviceAirPlayPicker: |
|
(UIView *_Nullable) | parentView |
|
Show the system AirPlay picker.
- Parameters
-
parentView | the parent view which AirPlay picker shows to. |
- Returns
- YES means show the picker success, otherwise failed.
◆ startAudio
Start audio.
- Returns
- The result of it.
◆ stopAudio
Stop audio.
- Returns
- the result of it.
◆ subscribe
Call the function to subscribe audio rawdata.
- Warning
- Please check the callack "- (void)onMixedAudioRawDataReceived:(ZoomVideoSDKAudioRawData *)rawData".
-
" - (void)onOneWayAudioRawDataReceived:(ZoomVideoSDKAudioRawData *)rawData user:(ZoomVideoSDKUser *)user.
◆ unmuteAllAudio
Ask unmute all user's VOIP audio.
- Returns
- The result of it.
- Warning
- Only host or manager can ask unmute all user's audio.
-
This functinon will trigger the callback onHostAskUnmute.
◆ unmuteAudio:
Ask unmute user's audio.
- Returns
- The result of it.
- Warning
- If unmute self use userid=0.
-
Only host or manager can unmute others audio.
-
This functinon will trigger the callback onHostAskUnmute.
◆ unSubscribe
Call the function to unSubscribe audio rawdata.
- Warning
- Please check the callack "- (void)onMixedAudioRawDataReceived:(ZoomVideoSDKAudioRawData *)rawData".
-
" - (void)onOneWayAudioRawDataReceived:(ZoomVideoSDKAudioRawData *)rawData user:(ZoomVideoSDKUser *)user.