Meeting SDK for macOS API Reference
Loading...
Searching...
No Matches
ZoomSDKShareAudioSender Class Reference

Sends external share audio content into the meeting. More...

#include <ZoomSDKRawDataShareSourceController.h>

Inherits NSObject.

Instance Methods

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

Detailed Description

Sends external share audio content into the meeting.

Definition at line 50 of file ZoomSDKRawDataShareSourceController.h.

Method Documentation

◆ sendShareAudio:dataLength:sampleRate:audioChannel:

- (ZoomSDKError) sendShareAudio: (char *_Nonnull) data
dataLength: (unsigned int) length
sampleRate: (int) rate
audioChannel: (ZoomSDKAudioChannel) channel 

Sends audio raw data.

Parameters
dataThe audio data's address.
lengthThe audio data's length, in even numbers.
rateThe audio data's sampling rate.
channelThe channel type, default is ZoomSDKAudioChannel_Mono.
Returns
If the function succeeds, it returns ZoomSDKError_Success. Otherwise, this function returns an error.
Note
Support sample rate: 44100 / 48000 / 50000 / 50400.
  1. The size of a single input must not exceed the number of bytes corresponding to 100 ms of audio. Exceeding this limit returns ZoomSDKError_SendTooMuchDataInSingleTime.
  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 ZoomSDKError_TooFrequentCall 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.