Media Player Kit v1.3.0 API Reference for Android
io.agora.mediaplayer.AudioFrameObserver Interface Reference

Public Member Functions

void onFrame (AudioFrame audioFrame)
 

Detailed Description

The AudioFrameObserver interface.

Member Function Documentation

◆ onFrame()

void io.agora.mediaplayer.AudioFrameObserver.onFrame ( AudioFrame  audioFrame)

Occurs when each time the player receives an audio frame.

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

Parameters
audioFrameThe detailed information of the audio frame. See AudioFrame.