Agora Java API Reference for Android
Public Member Functions | List of all members
io.agora.rte.media.data.AgoraRteAudioFrameObserver Interface Reference

Public Member Functions

boolean onRecordAudioFrame (AgoraRteAudioFrame audioFrame)
 
boolean onPlaybackAudioFrame (AgoraRteAudioFrame audioFrame)
 
boolean onMixedAudioFrame (AgoraRteAudioFrame audioFrame)
 
boolean onPlaybackAudioFrameBeforeMixing (String streamId, AgoraRteAudioFrame audioFrame)
 

Member Function Documentation

◆ onRecordAudioFrame()

boolean io.agora.rte.media.data.AgoraRteAudioFrameObserver.onRecordAudioFrame ( AgoraRteAudioFrame  audioFrame)

Occurs when the recorded audio frame is received.

Parameters
audioFrameThe reference to the audio frame: AudioFrame.
Returns
  • true: The recorded audio frame is valid and is encoded and sent.
  • false: The recorded audio frame is invalid and is not encoded or sent.

◆ onPlaybackAudioFrame()

boolean io.agora.rte.media.data.AgoraRteAudioFrameObserver.onPlaybackAudioFrame ( AgoraRteAudioFrame  audioFrame)

Occurs when the playback audio frame is received.

Parameters
audioFrameThe reference to the audio frame: AudioFrame.
Returns
  • true: The playback audio frame is valid and is encoded and sent.
  • false: The playback audio frame is invalid and is not encoded or sent.

◆ onMixedAudioFrame()

boolean io.agora.rte.media.data.AgoraRteAudioFrameObserver.onMixedAudioFrame ( AgoraRteAudioFrame  audioFrame)

Occurs when the mixed audio data is received.

Parameters
audioFrameThe reference to the audio frame: AudioFrame.
Returns
  • true: The mixed audio data is valid and is encoded and sent.
  • false: The mixed audio data is invalid and is not encoded or sent.

◆ onPlaybackAudioFrameBeforeMixing()

boolean io.agora.rte.media.data.AgoraRteAudioFrameObserver.onPlaybackAudioFrameBeforeMixing ( String  streamId,
AgoraRteAudioFrame  audioFrame 
)

Occurs when the playback audio frame before mixing is received.

Parameters
streamIduid ID of the remote user.
audioFrameThe reference to the audio frame: AudioFrame.
Returns
  • true: The playback audio frame before mixing is valid and is encoded and sent
  • false: The playback audio frame before mixing is invalid and is not encoded or sent.