onRemoteAudioTransportStats property
void Function(RtcConnection connection, int remoteUid, int width, int height, int elapsed)?
onRemoteAudioTransportStats
final
Reports the statistics of the remote audio stream transmission during a call.
Deprecated: Use onRemoteAudioStats instead. This callback reports end-to-end network statistics of the remote user during a call. It calculates metrics based on audio packets and objectively reflects the current network status using data such as packet loss and network delay. During a call, when a user receives audio packets sent by a remote user/host, this callback is triggered every 2 seconds.
connectionConnection information. See RtcConnection.remoteUidThe user ID specifying which user/host the audio packet belongs to.delayThe delay (ms) from the sender to the receiver for the audio packet.lostThe packet loss rate (%) from the sender to the receiver for the audio packet.rxKBitrateThe received bitrate (Kbps) of the remote audio packet.
Implementation
final void Function(RtcConnection connection, int remoteUid, int delay,
int lost, int rxKBitRate)? onRemoteAudioTransportStats;