songpham
songpham

Reputation: 55

WebRtc on slow connection

i have already used webrtc and socketIo on my project. Normally they are working well, however when the connection is slow down, seems two browsers can connect, but the webcam or voice does not show! I don't know how to detect that bugs and tell my users that "your connection is slow"! I used speedtest.net for testing connection.

With this connection, i can connect but the webcam or voice doesn't work.

enter image description here

With this connection, i can connect and the webcam or voice works, so i guess it's a problem

enter image description here

So how i can tell the webrtc that I am staying slow connection, could webrtc handle with slow connection environment? I try to use Skype for testing slow connection, and Skype can connect without problem. I think that webrtc is requiring the fast connection as default for 2 peers.

My constraints code is very basic, only {audio: true}, nothing else. Please help me!!!

Upvotes: 2

Views: 5450

Answers (1)

jesup
jesup

Reputation: 6984

Very likely the two connections have different NAT characteristics. If both ends are behind symmetric NATs, you can't establish a direct connection between them; you need to have a TURN server configured to bounce packets off of. 8Mbps is way more than enough. (Firefox in release maxes out at 2Mbps for video; in Nightly and IIRC 41/Aurora the bandwidth is proportional to the resolution, but VGA (the default in Firefox) maxes out at 1.3Mbps.

Try connecting using https://talky.io (which has a TURN server configured).

In Firefox, you can look at about:webrtc to see what network connections worked/didn't-work, etc.

Upvotes: 3

Related Questions