onPlaybackAudioEncodedFrame property

void Function(Uint8List frameBuffer, int length, EncodedAudioFrameInfo audioEncodedFrameInfo)? onPlaybackAudioEncodedFrame
final

Retrieves the audio encoded data of all remote users.

After calling registerAudioEncodedFrameObserver and setting the audio encoded content to audioEncodedFrameObserverPositionPlayback, you can use this callback to get the audio encoded data of all remote users.

  • frameBuffer Audio buffer.
  • length Length of the audio data in bytes.
  • audioEncodedFrameInfo Information about the encoded audio. See EncodedAudioFrameInfo.

Implementation

final void Function(Uint8List frameBuffer, int length,
    EncodedAudioFrameInfo audioEncodedFrameInfo)? onPlaybackAudioEncodedFrame;