onFirstLocalVideoFramePublished property

void Function(RtcConnection connection, int uid)? onFirstLocalVideoFramePublished
final

Callback when the first local video frame is published.

The SDK triggers this callback in the following scenarios: After successfully joining a channel with the local video module enabled. After calling muteLocalVideoStream(true) and then muteLocalVideoStream(false). After calling disableVideo and then enableVideo.

  • connection Connection information. See RtcConnection.
  • elapsed Time interval (ms) from calling joinChannel to triggering this callback.

Implementation

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