networkQuality property

NetworkQualityWithUidCallback? networkQuality
getter/setter pair

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.

Param rxQuality Downlink network quality rating of the user in terms of packet loss rate, average RTT, and jitter of the downlink network. Unknown (0): The quality is unknown. Excellent (1): The quality is excellent. Good (2): The network quality seems excellent, but the bitrate can be slightly lower than excellent. Poor (3): Users can feel the communication is slightly impaired. Bad (4): Users cannot communicate smoothly. VBad (5): The quality is so bad that users can barely communicate. Down (6): The network is down, and users cannot communicate at all.

Param 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 might be inadequate for resolutions higher than 1280 × 720. Unknown (0): The quality is unknown. Excellent (1): The quality is excellent. Good (2): The network quality seems excellent, but the bitrate can be slightly lower than excellent. Poor (3): Users can feel the communication is slightly impaired. Bad (4): Users cannot communicate smoothly. VBad (5): The quality is so bad that users can barely communicate. Down (6): The network is down, and users cannot communicate at all.

Param uid User ID. The network quality of the user with this user ID is reported. If the uid is 0, the local network quality is reported.

Implementation

NetworkQualityWithUidCallback? networkQuality;