IAudioFrameObserver

Audio observer.

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

onPlaybackAudioFrameBeforeMixing

Receives the audio of the subscribed remote user before mixing.

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

Parameters

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