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.
connectionConnection information. See RtcConnection.remoteUidUser ID that specifies whose video stream it is.widthWidth (px) of the video stream.heightHeight (px) of the video stream.elapsedDelay (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;