Agora Java API Reference for Android

Public Member Functions | List of all members
io.agora.mediaplayer.IMediaPlayerAudioFrameObserver Interface Reference

## Public Member Functions
AudioFrame | onFrame (AudioFrame frame)
| Occurs each time the player receives an audio frame. More...

## Member Function Documentation

## ◆ onFrame()

AudioFrame io.agora.mediaplayer.IMediaPlayerAudioFrameObserver.onFrame | ( | AudioFrame | frame | ) |

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

  frame | The audio frame information. See AudioFrame.

Returns
  Passes in the audio data after setting the `mode` parameter in `registerAudioFrameObserver` for handling audio data.