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.
samplesPerSecRecording sample rate (Hz).channelsThe number of channels. 1: Mono. 2: Stereo. If the channel uses stereo, the data is interleaved.samplesPerChannelThe number of samples per channel in the audio frame.frameBufferThe audio buffer.lengthThe data length (byte).audioEncodedFrameInfoAudio information after encoding. See EncodedAudioFrameInfo.
Implementation
final void Function(Uint8List frameBuffer, int length,
EncodedAudioFrameInfo audioEncodedFrameInfo)? onPlaybackAudioEncodedFrame;