제품 업데이트
Tencent Cloud 오디오/비디오 단말 SDK 재생 업그레이드 및 권한 부여 인증 추가
TRTC 월간 구독 패키지 출시 관련 안내

Quality | 이름 | 설명 |
0 | Unknown | 알 수 없음 |
1 | Excellent | 현재 네트워크 상태 우수 |
2 | Good | 현재 네트워크 상태 좋음 |
3 | Poor | 현재 네트워크 상태 문제 없음 |
4 | Bad | 현재 네트워크 상태가 좋지 않아 랙 및 통화 지연이 발생할 수 있음 |
5 | VeryBad | 현재 네트워크 상태는 매우 열악하여 TRTC는 연결을 유지할 수 있을 뿐 통신 품질을 보장할 수 없음 |
6 | Down | 현재 네트워크 상태는 TRTC의 최소 요구 사항을 충족할 수 없으며 정상적인 음성/영상 통화가 불가능함 |
import TRTCCloud, { TRTCQuality } from 'trtc-electron-sdk';const rtcCloud = new TRTCCloud();function onNetworkQuality(localQuality, remoteQuality) {switch(localQuality.quality) {case TRTCQuality.TRTCQuality_Unknown:console.log('SDK has not yet sensed the current network quality.');break;case TRTCQuality.TRTCQuality_Excellent:console.log('The current network is very good.');break;case TRTCQuality.TRTCQuality_Good:console.log('The current network is good.');break;case TRTCQuality.TRTCQuality_Poor:console.log('The current network quality barely meets the demand.');break;case TRTCQuality.TRTCQuality_Bad:console.log('The current network is poor, and there may be significant freezes and call delays.');break;case TRTCQuality.TRTCQuality_Vbad:console.log('The current network is very poor, the communication quality cannot be guaranteed.');break;case TRTCQuality.TRTCQuality_Down:console.log('The current network does not meet the minimum requirements.');break;default:break;}for (let i = 0; i < remoteQuality.length; i++) {console.log(`remote user: ${remoteQuality[i].userId}, quality: ${remoteQuality[i].quality}`);}}rtcCloud.on('onNetworkQuality', onNetworkQuality);
피드백