AudioFrameObserver

The audio frame observer.

You can call registerAudioFrameObserver to register or unregister the AudioFrameObserver audio frame observer.

onPlaybackAudioFrameBeforeMixing

Retrieves the audio frame of a specified user before mixing.

final void Function(String channelId, int uid, AudioFrame audioFrame)?
      onPlaybackAudioFrameBeforeMixing;
Attention: Due to the limitations of Flutter, this callback does not support sending processed audio data back to the SDK.

Parameters

channelId
The channel ID.
uid
The user ID of the specified user.
audioFrame
The raw audio data. See AudioFrame.