onCaptureVideoFrame property

void Function(VideoSourceType sourceType, VideoFrame videoFrame)? onCaptureVideoFrame
final

Occurs each time the SDK receives a video frame captured by local devices.

You can get raw video data collected by the local device through this callback.

  • sourceType Video source types, including cameras, screens, or media player. See VideoSourceType.
  • videoFrame The video frame. See VideoFrame. The default value of the video frame data format obtained through this callback is as follows: Android: I420 iOS: I420 macOS: I420 Windows: YUV420

Implementation

final void Function(VideoSourceType sourceType, VideoFrame videoFrame)?
    onCaptureVideoFrame;