It's a great question. Let me explain
Typical Scenario
Some users complain about this problem by saying I'm having 1Gbps internet speed and I should not get this warning. Yes it can have 1Gbps internet speed but it can still have this warning.
Because the important thing is E2E network quality(QoS). I mean 1Gbps internet speed is the one that ISP provides to reach the internet. On the other hand, if the server is another continent or server does not have bandwidth. One can get this warning again. So it's not only related to your internet connection speed.
Reasons
Here are some reasons that decrease the network QoS so that you can get this warning
- Bandwidth between Server and Client.
- High Packet Loss (<%1)
- High Round Trip Time (<150ms)
- High Jitter (<30ms)
Solution
For the #1, both server side and client side has enough E2E bandwidth.
You can also get rid of #2, #3 and #4 by making the server and client as close as possible.
The last but not least, if you're in a WiFi/Mobile network and the access point is not close or network quality is bad in your environment. There will be high packet loss and it may be the cause of the problem. I mean you can even take a look at there is no problem in your local network.
Monitor the Stats
Ant Media Server provides some statistics that you can monitor. When I investigate the issues, I monitor the statistics. I see that one of the stats has a bad value.
Ideally, jitter should be below 30ms. Packet loss should be no more than 1%, and network latency shouldn’t exceed 150 ms one-way (300 ms return).
Stats can be monitored under the sample player or through JS SDK. Check the image https://ANT_MEDIA_SERVER:5443/WebRTCAppEE/player.tml

antmedia.io