MediaPlayerVideoFrameObserver

The video frame observer for the media player.

You can call registerVideoFrameObserver to register or unregister the MediaPlayerVideoFrameObserver object.

onFrame

Occurs each time the player receives a video frame.

final void Function(VideoFrame frame)? onFrame;

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.

Parameters

frame
Video frame information. See VideoFrame.