onRemoteVideoTransportStats property

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

Callback for transport statistics of the remote video stream during a call.

Deprecated Deprecated: This callback is deprecated. Use onRemoteVideoStats instead. This callback reports end-to-end network statistics of the remote user during a call, calculated based on video packets. It objectively shows the current network status through data such as packet loss and network delay. During a call, this callback is triggered every 2 seconds after the user receives video packets sent by the remote user/host.

  • connection Connection information. See RtcConnection.
  • remoteUid User ID specifying which user/host the video packet belongs to.
  • delay Delay (ms) from the sender to the receiver for the video packet.
  • lost Packet loss rate (%) from the sender to the receiver for the video packet.
  • rxKBitRate Received bitrate (Kbps) of the remote video packet.

Implementation

final void Function(RtcConnection connection, int remoteUid, int delay,
    int lost, int rxKBitRate)? onRemoteVideoTransportStats;