IMediaPlayerVideoFrameObserver

The video frame observer for the media player.

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

onFrame

Occurs each time the player receives a video frame.

onFrame?(frame: VideoFrame): void;

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.