IAudioFrameObserver
Audio frame observer.
You can call registerAudioFrameObserver to register or unregister the IAudioFrameObserver.
onPlaybackAudioFrameBeforeMixing
Receives the audio of subscribed remote users before mixing.
onPlaybackAudioFrameBeforeMixing?(
channelId: string,
uid: number,
audioFrame: AudioFrame
): void;
Note: Due to framework limitations, this callback does not support sending 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.