onFirstLocalVideoFrame property
void Function(VideoSourceType source, int width, int height, int elapsed)?
onFirstLocalVideoFrame
final
已显示本地视频首帧回调。
本地视频首帧显示在本地视图上时,SDK 会触发此回调。
source视频源的类型。详见 VideoSourceType 。width本地渲染视频的宽 (px) 。height本地渲染视频的高 (px)。elapsed从调用 joinChannel 加入频道时到发生此事件过去的时间(毫秒)。如果在加入频道前调用了 startPreviewWithoutSourceType / startPreview ,则该参数表示从调用 startPreviewWithoutSourceType 或 startPreview 开启本地视频预览到发生此事件过去的时间。
Implementation
final void Function(
VideoSourceType source, int width, int height, int elapsed)?
onFirstLocalVideoFrame;