onMixedAudioEncodedFrame property

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

Gets the mixed and encoded audio data of the local and all remote users.

After calling registerAudioEncodedFrameObserver and setting the audio profile as audioEncodedFrameObserverPositionMixed, you can get the mixed and encoded audio data of the local and 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)? onMixedAudioEncodedFrame;