onPlaybackAudioEncodedFrame property
void Function(Uint8List frameBuffer, int length, EncodedAudioFrameInfo audioEncodedFrameInfo)?
onPlaybackAudioEncodedFrame
final
Gets the encoded audio data of all remote users.
After calling registerAudioEncodedFrameObserver and setting the encoded audio as audioEncodedFrameObserverPositionPlayback, you can get encoded audio data of all remote users through this callback.
samplesPerSec
Recording sample rate (Hz).channels
The number of channels. 1: Mono. 2: Stereo. If the channel uses stereo, the data is interleaved.samplesPerChannel
The number of samples per channel in the audio frame.frameBuffer
The audio buffer.length
The data length (byte).audioEncodedFrameInfo
Audio information after encoding. See EncodedAudioFrameInfo.
Implementation
final void Function(Uint8List frameBuffer, int length,
EncodedAudioFrameInfo audioEncodedFrameInfo)? onPlaybackAudioEncodedFrame;