AudioEncodedFrameObserver
Observer for encoded audio.
onMixedAudioEncodedFrame
Retrieves the encoded audio data after mixing local and all remote users' audio.
final void Function(Uint8List frameBuffer, int length,
EncodedAudioFrameInfo audioEncodedFrameInfo)? onMixedAudioEncodedFrame;
After calling registerAudioEncodedFrameObserver and setting the audio encoding content to audioEncodedFrameObserverPositionMixed, you can use this callback to get the mixed and encoded audio data from the local and all remote users.
Parameters
- frameBuffer
- Audio buffer.
- length
- Length of the audio data in bytes.
- audioEncodedFrameInfo
- Information about the encoded audio. See EncodedAudioFrameInfo.
onPlaybackAudioEncodedFrame
Retrieves the audio encoded data of all remote users.
final void Function(Uint8List frameBuffer, int length,
EncodedAudioFrameInfo audioEncodedFrameInfo)? onPlaybackAudioEncodedFrame;
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.
Parameters
- frameBuffer
- Audio buffer.
- length
- Length of the audio data in bytes.
- audioEncodedFrameInfo
- Information about the encoded audio. See EncodedAudioFrameInfo.
onRecordAudioEncodedFrame
Retrieves the audio encoded data of the local user.
final void Function(Uint8List frameBuffer, int length,
EncodedAudioFrameInfo audioEncodedFrameInfo)? onRecordAudioEncodedFrame;
After calling registerAudioEncodedFrameObserver and setting the audio encoded content to audioEncodedFrameObserverPositionRecord, you can use this callback to get the audio encoded data of the local user.
Parameters
- frameBuffer
- Audio buffer.
- length
- Length of the audio data in bytes.
- audioEncodedFrameInfo
- Information about the encoded audio. See EncodedAudioFrameInfo.