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.
sourceType of video source. See VideoSourceType.widthWidth (px) of the locally rendered video.heightHeight (px) of the locally rendered video.elapsedTime 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;