onPlaybackAudioFrame property
Retrieves the raw audio data being played.
To ensure the format of the playback audio data meets expectations, you can set the audio data format using the following methods: Call setPlaybackAudioFrameParameters to set the audio data format, then call registerAudioFrameObserver to register the audio frame observer object. The SDK calculates the sampling interval based on the parameters of this method and triggers the onPlaybackAudioFrame callback accordingly. Due to framework limitations, this callback does not support sending the processed audio data back to the SDK.
audioFrameRaw audio data. See AudioFrame.channelIdChannel ID.
Implementation
final void Function(String channelId, AudioFrame audioFrame)?
onPlaybackAudioFrame;