onFirstRemoteVideoFrame property

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

Callback when the renderer receives the first remote video frame.

This callback is only triggered when the SDK is used for rendering. If you use custom video rendering, this callback is not triggered, and you need to implement it using methods outside the SDK.

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

Implementation

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