Video SDK for iOS API Reference
Loading...
Searching...
No Matches
ZoomVideoSDKShareAudioSender Class Reference

Interface to send share audio raw data. More...

#include <ZoomVideoSDKShareAudioSender.h>

Inherits NSObject.

Instance Methods

(ZoomVideoSDKError) - sendShareAudio:dataLength:sampleRate:audioChannel:
 Sends audio raw data.

Detailed Description

Interface to send share audio raw data.

Definition at line 12 of file ZoomVideoSDKShareAudioSender.h.

Method Documentation

◆ sendShareAudio:dataLength:sampleRate:audioChannel:

- (ZoomVideoSDKError) sendShareAudio: (char *) data
dataLength: (NSUInteger) length
sampleRate: (NSUInteger) rate
audioChannel: (ZoomVideoSDKAudioChannel) channel 

Sends audio raw data.

Parameters
dataThe audio data address.
lengthThe audio data length. It must be even numbers.
rateThe audio data sampling rate.
channelThe channel type.
Returns
If the function succeeds, it returns Errors_Success. Otherwise, this function returns an error.
Warning
Supported audio data properties: Mono: 8000, 11025, 16000, 32000, 44100, 48000, 50000, 50400, 96000, 192000. Stereo: 8000, 16000, 32000, 44100, 48000, 50000, 50400, 96000, 192000. Channels: mono and stereo. Resolution: little-endian, 16bit.
Note
  1. The size of a single input must not exceed the number of bytes corresponding to 100 ms of audio. Exceeding this limit returns Errors_Rawdata_Send_Too_Much_Data_In_Single_Time.
  2. Variable-length input is supported; it is recommended to send audio data in 10 ms, 20 ms, or 30 ms chunks (not exceeding 100 ms).
  3. If Errors_Rawdata_Send_Too_Frequently is returned, this is not a genuine error; please wait briefly before retrying—for example, sleep for 10 ms before attempting to send the data again.