Meeting SDK for iOS API Reference
Loading...
Searching...
No Matches
MobileRTCAudioRawDataHelper Class Reference

A helper to subscribe or unsubscribe audio raw data. More...

#include <MobileRTCAudioRawDataHelper.h>

Inherits NSObject.

Instance Methods

(instancetype _Nonnull) - initWithDelegate:
 Initializes MobileRTCAudioRawDataHelper.
(MobileRTCRawDataError) - subscribe
 Starts audio raw data for CurrentSession.
(MobileRTCRawDataError) - subscribe:
 Starts audio raw data from one source.
(MobileRTCRawDataError) - unSubscribe
 Stops CurrentSession audio raw data.
(MobileRTCRawDataError) - unSubscribe:
 Stop receiving raw audio data for one source.

Detailed Description

A helper to subscribe or unsubscribe audio raw data.

Definition at line 13 of file MobileRTCAudioRawDataHelper.h.

Method Documentation

◆ initWithDelegate:

- (instancetype _Nonnull) initWithDelegate: (id< MobileRTCAudioRawDataDelegate >_Nonnull) delegate

Initializes MobileRTCAudioRawDataHelper.

Parameters
delegateThe delegate to receive the callback.
Returns
The MobileRTCAudioRawDataHelper object.

◆ subscribe

- (MobileRTCRawDataError) subscribe

Starts audio raw data for CurrentSession.

Returns
If the function succeeds, it will return MobileRTCRawDataError_Success. Otherwise return an error.

References subscribe.

Referenced by subscribe, and subscribe:.

◆ subscribe:

Starts audio raw data from one source.

Parameters
sourcesCurrentSession or MainSession (webinar backstage only).

References subscribe.

◆ unSubscribe

- (MobileRTCRawDataError) unSubscribe

Stops CurrentSession audio raw data.

Returns
If the function succeeds, it will return MobileRTCRawDataError_Success. Otherwise return an error.

References unSubscribe.

Referenced by unSubscribe, and unSubscribe:.

◆ unSubscribe:

- (MobileRTCRawDataError) unSubscribe: (MobileRTCSessionSource) sources

Stop receiving raw audio data for one source.

References unSubscribe.