onFrame

Occurs each time the player receives an audio frame.

onFrame?(frame: AudioPcmFrame): void;

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.