onPlaybackAudioFrame property
Gets the raw audio frame for playback.
To ensure that the data format of audio frame for playback is as expected, Agora recommends that you set the audio data format as follows: After calling setPlaybackAudioFrameParameters to set the audio data format and registerAudioFrameObserver to register the audio frame observer object, the SDK calculates the sampling interval according to the parameters set in the methods, and triggers the onPlaybackAudioFrame callback according to the sampling interval. Due to framework limitations, this callback does not support sending processed audio data back to the SDK.
audioFrame
The raw audio data. See AudioFrame.channelId
The channel ID.
Implementation
final void Function(String channelId, AudioFrame audioFrame)?
onPlaybackAudioFrame;