decentralized-video-chat
decentralized-video-chat copied to clipboard
Custom STUN/TURN server configuration support
Also, did you run npx prettier --write .
?
Also, did you run
npx prettier --write .
?
Yes, and nothing changed, Prettier is my default format tool.
So does this still depend upon Twillio's STUN/TURN server or is this a custom, locally hosted server?
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 :)
@ianramzy I think we should merge this?
@g0ne150 we will merge this as soon as #49 is through. Sorry for the long wait :/
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 ?
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 :)
ICE_SERVER_URLS=stun:stun.l.google.com:19302 is the right syntax :)
Are you sure? Have you tested this?
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/
Documentation here:
https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/urls
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 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
Yes i will ! Because twilio can be expansive quickly when use turn : 0,4 dollars per giga.