onFirstLocalVideoFrame property

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

Callback when the first local video frame is displayed.

This callback is triggered by the SDK when the first local video frame is displayed in the local view.

  • source Type of video source. See VideoSourceType.
  • width Width (px) of the locally rendered video.
  • height Height (px) of the locally rendered video.
  • elapsed Time elapsed (ms) from calling joinChannel to the occurrence of this event. If startPreviewWithoutSourceType / startPreview is called before joining the channel, this parameter indicates the time from starting the local video preview to the occurrence of this event.

Implementation

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