onAudioQuality property
void Function(RtcConnection connection, int remoteUid, QualityType quality, int delay, int lost)?
onAudioQuality
final
Reports the statistics of the audio stream from each remote user. Deprecated:Please use onRemoteAudioStats instead.The SDK triggers this callback once every two seconds to report the audio quality of each remote user/host sending an audio stream. If a channel has multiple users/hosts 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.
Implementation
final void Function(RtcConnection connection, int remoteUid,
QualityType quality, int delay, int lost)? onAudioQuality;