feross / simple-peer

📡 Simple WebRTC video, voice, and data channels
MIT License
7.34k stars 969 forks source link

'stun:global.stun.twilio.com:3478?transport=udp' is not a valid stun or turn URL on calling new SimplePeer() #931

Open eedohila opened 5 months ago

eedohila commented 5 months ago

Hi, I didn't touch my code for three years and now trying to rerun it (it worked before), and it gives me a - "Failed to construct 'RTCPeerConnection': 'stun:global.stun.twilio.com:3478?transport=udp' is not a valid stun or turn URL." error message on calling peer = new SimplePeer(options); through the client.
Any help would be appreciated. (I am not sure this is the right place to put this, and don't really understand too much in programming, node, webRTC, more a hobby project).

fippo commented 4 months ago

Remove the ?transport=udp from the place you are passing it. See https://github.com/twilio/twilio-video.js/issues/1934 for the full story

eedohila commented 4 months ago

Remove the ?transport=udp from the place you are passing it. See twilio/twilio-video.js#1934 for the full story

Thanks, :-). Did it and it works. (Actually already got a reply from the silentbot in the discord channel and understood to do this change, although less of the why). Thanks again.