onFirstRemoteVideoFrame property
void Function(RtcConnection connection, int remoteUid, int width, int height, int elapsed)?
onFirstRemoteVideoFrame
final
Occurs when the renderer receives the first frame of the remote video.
This callback is only triggered when the video frame is rendered by the SDK; it will not be triggered if the user employs custom video rendering.You need to implement this independently using methods outside the SDK.
uid
The user ID of the remote user sending the video stream.connection
The connection information. See RtcConnection.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 until the SDK triggers this callback.
Implementation
final void Function(RtcConnection connection, int remoteUid, int width,
int height, int elapsed)? onFirstRemoteVideoFrame;