onFrame property

void Function(VideoFrame frame)? onFrame
final

Callback when a video frame is received.

After registering the video observer, this callback is triggered every time a video frame is received, reporting video frame information.

  • frame Video frame information. See VideoFrame.

Implementation

final void Function(VideoFrame frame)? onFrame;