onFirstRemoteVideoDecoded property

void Function(RtcConnection connection, int remoteUid, int width, int height, int elapsed)? onFirstRemoteVideoDecoded
final

Occurs when the first remote video frame is received and decoded. The SDK triggers this callback under one of the following circumstances:The remote user joins the channel and sends the video stream.The remote user stops sending the video stream and re-sends it after 15 seconds. Reasons for such an interruption include:The remote user leaves the channel.The remote user drops offline.The remote user calls muteLocalVideoStream to stop sending the video stream.The remote user calls disableVideo to disable video.

  • connection The connection information. See RtcConnection .
  • remoteUid The ID of the remote user sending the video stream.
  • width The width (px) of the video stream.
  • height The height (px) of the video stream.
  • elapsed The time elapsed (ms) from the local user calling joinChannel 2/2 until the SDK triggers this callback.

Implementation

final void Function(RtcConnection connection, int remoteUid, int width,
    int height, int elapsed)? onFirstRemoteVideoDecoded;