hnasr / javascript_playground

Javascript playground tutorials
1.06k stars 948 forks source link

Typo in turn server credentials #19

Closed shahidhafiz closed 3 years ago

shahidhafiz commented 3 years ago

PeerA.js replace urls with url and credentials with credential in the following code. iceConfiguration.iceServers.push({ url: 'turn:my-turn-server.mycompany.com:19403', username: 'optional-username', credential: 'auth-token' })

Also replace urls: 'turn:stun1.l.google.com:19302' with 'url': 'stun:stun.l.google.com:19302'

hnasr commented 3 years ago

That is the syntax in MDN

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