onFrame property

void Function(VideoFrame frame)? onFrame
final

Occurs each time the player receives a video frame.

After registering the video frame observer, the callback occurs every time the player receives a video frame, reporting the detailed information of the video frame.

  • frame Video frame information. See VideoFrame.

Implementation

final void Function(VideoFrame frame)? onFrame;