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.

  • connection Connection information. See RtcConnection.
  • remoteUid User ID of the sender of the audio stream.
  • quality Audio quality. See QualityType.
  • delay Delay (ms) from the sender to the receiver, including preprocessing, network transmission, and jitter buffer delay.
  • lost Packet loss rate (%) from the sender to the receiver.

Implementation

final void Function(RtcConnection connection, int remoteUid,
    QualityType quality, int delay, int lost)? onAudioQuality;