onAudioQuality property
void Function(RtcConnection connection, int remoteUid, QualityType quality, int delay, int lost)?
onAudioQuality
final
Reports the statistics of the audio stream sent by each remote user.
Deprecated: Use onRemoteAudioStats instead. The SDK triggers this callback once every two seconds to report the audio quality of each remote user who is sending an audio stream. If a channel has multiple users sending audio streams, the SDK triggers this callback as many times.
connection
The connection information. See RtcConnection.remoteUid
The user ID of the remote user sending the audio stream.quality
Audio quality of the user. See QualityType.delay
The network delay (ms) from the sender to the receiver, including the delay caused by audio sampling pre-processing, network transmission, and network jitter buffering.lost
The packet loss rate (%) of the audio packet sent from the remote user to the receiver.
Implementation
final void Function(RtcConnection connection, int remoteUid,
QualityType quality, int delay, int lost)? onAudioQuality;