onFrame property

(void Function(AudioPcmFrame frame)?) onFrame
final

Occurs each time the player receives an audio frame.

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.

  • frame The audio frame information. See AudioPcmFrame.

Implementation

final void Function(AudioPcmFrame frame)? onFrame;