IAudioFrameObserver
The audio frame observer.
Inherited from IAudioFrameObserverBase.
You can call registerAudioFrameObserver to register or unregister the IAudioFrameObserver audio frame observer.
onFrame
Occurs each time the player receives an audio frame.
virtual void onFrame(AudioPcmFrame* frame) = 0;
After registering the audio frame observer, the callback occurs every time the player receives an audio frame, reporting the detailed information of the audio frame.
Parameters
- frame
- The audio frame information. See AudioPcmFrame.
onPlaybackAudioFrameBeforeMixing
Retrieves the audio frame of a specified user before mixing.
virtual bool onPlaybackAudioFrameBeforeMixing(const char* channelId, rtc::uid_t uid, AudioFrame& audioFrame) = 0;
Parameters
- channelId
- The channel ID.
- uid
- The user ID of the specified user.
- audioFrame
- The raw audio data. See AudioFrame.
Returns
Reserved for future use.