AudioFrameObserver

Audio observer.

You can call registerAudioFrameObserver to register or unregister the AudioFrameObserver.

onPlaybackAudioFrameBeforeMixing

Retrieves the audio of a subscribed remote user before mixing.

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

Parameters

channelId
Channel ID.
uid
ID of the subscribed remote user.
audioFrame
Raw audio data. See AudioFrame.