onFirstRemoteVideoDecoded property

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

Callback when the first remote video is received and decoded.

The SDK triggers this callback in the following scenarios: When the remote user sends video after coming online for the first time. When the remote user sends video after going offline and then coming back online. Possible causes of such interruptions include: The remote user leaves the channel. The remote user gets disconnected. The remote user calls the disableVideo method to disable the video module.

  • connection Connection information. See RtcConnection.
  • remoteUid User ID that specifies whose video stream it is.
  • width Width (px) of the video stream.
  • height Height (px) of the video stream.
  • elapsed Delay (ms) from the local call to joinChannel to the triggering of this callback.

Implementation

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