onRemoteAudioStats property

void Function(RtcConnection connection, RemoteAudioStats stats)? onRemoteAudioStats
final

Reports the transport-layer statistics of each remote audio stream.

The SDK triggers this callback once every two seconds for each remote user who is sending audio streams. If a channel includes multiple remote users, the SDK triggers this callback as many times.

  • connection The connection information. See RtcConnection.
  • stats The statistics of the received remote audio streams. See RemoteAudioStats.

Implementation

final void Function(RtcConnection connection, RemoteAudioStats stats)?
    onRemoteAudioStats;