AgoraIO-Community / AgoraWebSDK-NG

The Next Generation of Agora Web SDK
https://agoraio-community.github.io/AgoraWebSDK-NG/
161 stars 75 forks source link

exception 2001 fired for too long #12

Closed livefire2015 closed 4 years ago

livefire2015 commented 4 years ago

Problem: The exception 2001 AUDIO_INPUT_LEVEL_TOO_LOW is shown for 30 seconds before a newly-joined user could be heard by others in the same channel.

Console log:

image

How to reproduce:

  1. Start a video call using the Web SDK NG.
  2. Ask ten people to join the call one-by-one.
  3. 7 out of 10 people report that they cannot be heard by others during the first 30 seconds since they join.
  4. After 30 seconds, the exception 2001 goes away.
disoul commented 4 years ago

The exception event is not an error, it is just a warning to remind you something in the channel is not working normally. This warning is based on a monitor for WebRTC Stats. If this monitor finds some stats value is abnormal for a long time, it will emit the exception event.

In your case, exception 2001 means your input audio level is too low for a long time. It will make other people can not hear you, but SDK can not know what's wrong with your microphone, maybe you should check it by yourself or show an alert on your webpage.