onRemoteAudioTransportStats property

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

Reports the transport-layer statistics of each remote audio stream.

Deprecated: Use onRemoteAudioStats instead. This callback reports the transport-layer statistics, such as the packet loss rate and network time delay after the local user receives an audio packet from a remote user. During a call, when the user receives the audio packet sent by the remote user, the callback is triggered every 2 seconds.

  • connection The connection information. See RtcConnection.
  • remoteUid The ID of the remote user sending the audio streams.
  • delay The network delay (ms) from the remote user to the receiver.
  • lost The packet loss rate (%) of the audio packet sent from the remote user to the receiver.
  • rxKBitrate The bitrate of the received audio (Kbps).

Implementation

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