onFirstLocalVideoFrame property

void Function(VideoSourceType source, int width, int height, int elapsed)? onFirstLocalVideoFrame
final

Occurs when the first local video frame is displayed on the local video view.

The SDK triggers this callback when the first local video frame is displayed on the local video view.

  • source The type of the video source. See VideoSourceType.
  • width The width (px) of the first local video frame.
  • height The height (px) of the first local video frame.
  • elapsed The time elapsed (ms) from the local user calling joinChannel to join the channel to when the SDK triggers this callback. If startPreviewWithoutSourceType / startPreview is called before joining the channel, this parameter indicates the time elapsed from calling startPreviewWithoutSourceType or startPreview to when this event occurred.

Implementation

final void Function(
        VideoSourceType source, int width, int height, int elapsed)?
    onFirstLocalVideoFrame;