onFirstLocalVideoFramePublished property

void Function(RtcConnection connection, 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 to join the channel 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 until this callback is triggered.

Implementation

final void Function(RtcConnection connection, int elapsed)?
    onFirstLocalVideoFramePublished;