onFirstLocalVideoFramePublished property

void Function(VideoSourceType source, int elapsed)? onFirstLocalVideoFramePublished
final

Occurs when the first video frame is published. The SDK triggers this callback under one of the following circumstances: The local client enables the video module and calls joinChannel successfully. The local client calls muteLocalVideoStream (true) and muteLocalVideoStream (false) in sequence. The local client calls disableVideo and enableVideo in sequence.

  • connection The connection information. See RtcConnection .
  • elapsed Time elapsed (ms) from the local user calling joinChannel 2/2 until the SDK triggers this callback.

Implementation

final void Function(VideoSourceType source, int elapsed)?
    onFirstLocalVideoFramePublished;