onNetworkQuality property

(void Function(RtcConnection connection, int remoteUid, QualityType txQuality, QualityType rxQuality)?) onNetworkQuality
final

Reports the last mile network quality of each user in the channel. This callback reports the last mile network conditions of each user in the channel. Last mile refers to the connection between the local device and Agora's edge server.The SDK triggers this callback once every two seconds. If a channel includes multiple users, the SDK triggers this callback as many times.txQuality is rxQuality is

  • connection The connection information. See RtcConnection .
  • remoteUid The user ID. The network quality of the user with this user ID is reported.
  • txQuality Uplink network quality rating of the user in terms of the transmission bit rate, packet loss rate, average RTT (Round-Trip Time) and jitter of the uplink network. This parameter is a quality rating helping you understand how well the current uplink network conditions can support the selected video encoder configuration. For example, a 1000 Kbps uplink network may be adequate for video frames with a resolution of 640 × 480 and a frame rate of 15 fps in the LIVE_BROADCASTING profile, but may be inadequate for resolutions higher than 1280 × 720. See QualityType .
  • rxQuality Downlink network quality rating of the user in terms of packet loss rate, average RTT, and jitter of the downlink network. See QualityType .

Implementation

final void Function(RtcConnection connection, int remoteUid,
    QualityType txQuality, QualityType rxQuality)? onNetworkQuality;