当前位置:网站首页>How to handle the uplink and downlink silence of TRTC

How to handle the uplink and downlink silence of TRTC

2022-06-24 03:18:00 TRTC Encyclopedia

1 First of all, judge whether the uplink is silent or the downlink is silent , There are two ways to judge :

(1) Monitoring instrument cluster

open Monitoring instrument cluster , Input sdkappid and roomid, And switch to the call details page of the problem user , Then switch to the audio details page card . If the audio transmission bit rate is abnormal ( Continuously less than 16kbps), It means that the uplink is silent ; If the audio reception bit rate is abnormal ( Continuously less than 16kbps), Then it is silent in the downward direction .

(2) User feedback

No one in the room can hear , It means that the uplink is silent ; Some people in the room can't hear , Then it is silent in the downward direction .

2 Uplink silent processing method

2.1 No microphone rights

Check whether the microphone permission has been obtained .

2.2 Sound capture API、 Mute API

Check whether the call to start sound acquisition API startLocalAudio Or stop sound acquisition in advance ; call API Mute acquisition setCurrentMicDeviceMute: 1; User mute local audio , call muteLocalAudio mute Unmute .

2.3 Microphone startup failed 、 abnormal

(1) Check whether the user inserts the collection device

(2) The user may have selected a faulty acquisition device , It is recommended to replace it for troubleshooting

(3) Users will app Switch to the background , Then start the microphone acquisition ,startLocalAudio Need to be APP Execute at the front desk

(4) Unplug or replace headphones

2.4 Acquisition volume setting is too low

Check whether the hardware and software acquisition volume is too low .

2.5 Role setting error

Audience characters can't upload audio .

2.6 The anchor is abnormal

-3316 The room entry parameter is empty , Please check TRTCCloud.enterRoom(): Whether the interface call passes in a valid param

-3317 Room entry parameters sdkAppId error

-3318 Room entry parameters roomId error

-3319 Room entry parameters userID Incorrect

-3320 Room entry parameters userSig Incorrect

-3308 Request for room entry timeout , Please check the network

-100013 Service not available . Please check : Whether the number of minutes left in the package is greater than 0, Is Tencent account in arrears

3 Downlink silent processing method

3.1 The audience did not pull the remote audio data

Check if... Is called muteRemoteAudio mute Remote audio .

3.2 The audio data played by the viewer is abnormal

setRemoteAudioVolume Of Volume Very small (<20).

3.2 The audience playback device does not work

(1)pc The end user has not inserted the playback device

(2) Frequently appears in the local logs of the Android end restart play device, It indicates that the system plays abnormally , It is necessary to judge whether the user is wearing headphones . If you bring headphones , Whether it is normal to pull the current again ; If you don't have , Tell the user to restart the mobile phone .

3.3 Cancels the audio auto subscription function

In the local log setDefaultStreamRecvMode audio:false, Please refer to setDefaultStreamRecvMode, Resume audio auto subscription .

原网站

版权声明
本文为[TRTC Encyclopedia]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/10/20211011200148022b.html