Agora RTC Objective-C API Reference Refactor

Instance Methods
<AgoraAudioEncodedFrameDelegate> Protocol Reference

Inherits <NSObject>.

## Instance Methods
(void) | - onRecordEncodedAudioFrame:info:
(void) | - onPlaybackEncodedAudioFrame:info:
(void) | - onMixedEncodedAudioFrame:info:

## Method Documentation

## ◆ onRecordEncodedAudioFrame:info:

- (void) onRecordEncodedAudioFrame: |  | (NSData *_Nonnull) | frameData
info: |  | (AgoraEncodedAudioFrameInfo *_Nonnull) | info
| required

Gets the encoded audio data of the local user.

After calling `setAudioEncodedFrameDelegate:config:` and setting the encoded audio as AgoraAudioEncodedFrameObserverPositionRecord, you can get the encoded audio data of the local user from this callback.

Parameters

  frameData | The audio buffer.
  info | Audio information after encoding. See `AgoraEncodedAudioFrameInfo`.

## ◆ onPlaybackEncodedAudioFrame:info:

- (void) onPlaybackEncodedAudioFrame: |  | (NSData *_Nonnull) | frameData
info: |  | (AgoraEncodedAudioFrameInfo *_Nonnull) | info
| required

Gets the encoded audio data of all remote users.

After calling `setAudioEncodedFrameDelegate:config:` and setting the encoded audio as AgoraAudioEncodedFrameObserverPositionPlayback, you can get encoded audio data of all remote users through this callback.

Parameters

  frameData | The audio buffer.
  info | Audio information after encoding. See `AgoraEncodedAudioFrameInfo`.

## ◆ onMixedEncodedAudioFrame:info:

- (void) onMixedEncodedAudioFrame: |  | (NSData *_Nonnull) | frameData
info: |  | (AgoraEncodedAudioFrameInfo *_Nonnull) | info
| required

Gets the mixed and encoded audio data of the local and all remote users.

After calling `setAudioEncodedFrameDelegate:config:` and setting the audio profile as AgoraAudioEncodedFrameObserverPositionMixed, you can get the mixed and encoded audio data of the local and all remote users through this callback.

Parameters

  frameData | The audio buffer.
  info | Audio information after encoding. See `AgoraEncodedAudioFrameInfo`.