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;