decentralized-video-chat icon indicating copy to clipboard operation
decentralized-video-chat copied to clipboard

Custom STUN/TURN server configuration support

Open g0ne150 opened this issue 4 years ago • 15 comments

g0ne150 avatar Apr 16 '20 03:04 g0ne150

Also, did you run npx prettier --write .?

Chaphasilor avatar Apr 16 '20 09:04 Chaphasilor

Also, did you run npx prettier --write .?

Yes, and nothing changed, Prettier is my default format tool.

g0ne150 avatar Apr 17 '20 02:04 g0ne150

So does this still depend upon Twillio's STUN/TURN server or is this a custom, locally hosted server?

gfyre avatar May 21 '20 16:05 gfyre

So does this still depend upon Twillio's STUN/TURN server or is this a custom, locally hosted server?

this will use twillio's TURN server if no custom one is specified, however you are now able to use a different server :)

Chaphasilor avatar May 31 '20 14:05 Chaphasilor

@ianramzy I think we should merge this?

Chaphasilor avatar May 31 '20 14:05 Chaphasilor

@g0ne150 we will merge this as soon as #49 is through. Sorry for the long wait :/

Chaphasilor avatar Jun 08 '20 17:06 Chaphasilor

Bad documentation Will be ICE_SERVER_URLS=stun:stun.l.google.com:19302,stun:stun1.l.google.com:19302,stun:stun2.l.google.com:19302,stun:stun3.l.google.com:19302,stun:stun4.l.google.com:19302

realPy avatar Sep 12 '20 12:09 realPy

@realPy ?

Chaphasilor avatar Sep 12 '20 15:09 Chaphasilor

With ICE_SERVER_URLS=stun.l.google.com:19302 its not work . ICE_SERVER_URLS=stun:stun.l.google.com:19302 is the right syntax :)

realPy avatar Sep 12 '20 16:09 realPy

ICE_SERVER_URLS=stun:stun.l.google.com:19302 is the right syntax :)

Are you sure? Have you tested this?

Chaphasilor avatar Sep 13 '20 21:09 Chaphasilor

Yes,

I have try with my own stun server too with coturn and its work great. Without this not work for me. And its on the JS documentation. (several example add the protocol ) Trickle-ice use also the scheme with stun. https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/

realPy avatar Sep 13 '20 21:09 realPy

Documentation here:

https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/urls

realPy avatar Sep 13 '20 21:09 realPy

Information for test: stun work very well in network local and some other situation. When 2 people is under nat, you MUST use a TURN server (https://github.com/coturn/coturn) ( the server act as relay ) There is NO free turn server you must start one. If you do this, you must use credentials (noauth not work for relay) and use the scheme "turn:"

realPy avatar Sep 14 '20 13:09 realPy

@realPy thank you so much for the infos!

Also, if you have experience with setting up coturn to work with zipcall, a short guide would be awesome! :D

Chaphasilor avatar Sep 14 '20 17:09 Chaphasilor

Yes i will ! Because twilio can be expansive quickly when use turn : 0,4 dollars per giga.

realPy avatar Sep 14 '20 17:09 realPy