Quality | Name | Description |
1 | Unknown | Unperceived |
1 | Excellent | The present network is exceedingly good |
2 | Good | The current network is fairly good |
3 | Poor | Current network is average |
4 | Bad | Present network quality is poor, it might cause noticeable stutters and communication delays |
5 | VeryBad | The current network conditions are abysmal, TRTC can barely maintain a connection, yet it can't guarantee the quality of communication |
6 | Down | The current network does not meet the minimum requirements of TRTC, obstructing the normal audio and video conversation |
// Monitor the onNetworkQuality callback and perceive the alterations in the current network statusif (type == TRTCCloudListener.onNetworkQuality) {if (type == TRTCCloudDef.TRTC_QUALITY_UNKNOWN) {// TODO} else if (type == TRTCCloudDef.TRTC_QUALITY_Excellent) {// TODO} else if (type == TRTCCloudDef.TRTC_QUALITY_Good) {// TODO} else if (type == TRTCCloudDef.TRTC_QUALITY_Poor) {// TODO} else if (type == TRTCCloudDef.TRTC_QUALITY_Bad) {// TODO} else if (type == TRTCCloudDef.TRTC_QUALITY_Vbad) {// TODO} else if (type == TRTCCloudDef.TRTC_QUALITY_Down) {// TODO}// Get the network quality of remote usersfor (var info in param['remoteQuality']) {// TODO}}
Was this page helpful?