onAudioQuality property
void Function(RtcConnection connection, int remoteUid, QualityType quality, int delay, int lost)?
onAudioQuality
final
Callback for remote audio quality.
Deprecated Deprecated: Use onRemoteAudioStats instead. This callback describes the audio quality of a remote user during a call and is triggered every 2 seconds for each remote user/host. If there are multiple remote users/hosts, the callback is triggered multiple times every 2 seconds.
connectionConnection information. See RtcConnection.remoteUidUser ID of the sender of the audio stream.qualityAudio quality. See QualityType.delayDelay (ms) from the sender to the receiver, including preprocessing, network transmission, and jitter buffer delay.lostPacket loss rate (%) from the sender to the receiver.
Implementation
final void Function(RtcConnection connection, int remoteUid,
QualityType quality, int delay, int lost)? onAudioQuality;