IAudioFrameObserver

The audio frame observer.

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

onPlaybackAudioFrameBeforeMixing

Retrieves the audio frame of a specified user before mixing.

  onPlaybackAudioFrameBeforeMixing?(
    channelId: string,
    uid: number,
    audioFrame: AudioFrame
  ): boolean;

Parameters

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

Returns

Without practical meaning.