Agora RTC Objective-C API Reference  Refactor
Instance Methods
<AgoraRtcMediaPlayerAudioFrameDelegate> Protocol Reference

Inherits <NSObject>.

Instance Methods

(void) - AgoraRtcMediaPlayer:didReceiveAudioFrame:
 

Detailed Description

This protocol defines the callbacks for processing audio frames from the media player. You can implement these methods to receive and process audio frames played by the media player.

Method Documentation

◆ AgoraRtcMediaPlayer:didReceiveAudioFrame:

- (void) AgoraRtcMediaPlayer: (id< AgoraRtcMediaPlayerProtocol > _Nonnull)  playerKit
didReceiveAudioFrame: (AgoraAudioFrame *_Nonnull)  audioFrame 

Occurs each time the player receives an audio frame.

After registering the audio frame observer, the callback occurs every time the player receives an audio frame, reporting the detailed information of the audio frame.

Parameters
audioFrameThe audio frame information. See AgoraAudioFrame.
playerKitSee AgoraRtcMediaPlayerProtocol.