Closed dai-shi closed 6 years ago
This and this https://github.com/peers/peerjs/issues/394#issuecomment-385603404 worked for me.
Wouldn't you need to provide then an array of urls instead of a string?
var defaultConfig = { iceServers: [{ urls: ["stun:stun.l.google.com:19302"] }] };
https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer#Properties
urls This required property is either a single DOMString or an array of DOMStrings, each specifying a URL which can be used to connect to the server.
Firefox seems to want this too. In Firefox, I get this warning in the console: "RTCIceServer.url is deprecated! Use urls instead."
Done by @i0n, peerjs version 0.3.17
https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer#Properties states that
url
is obsoleted.More specifically:
https://github.com/peers/peerjs/blob/b88da6a1951802d1319e3b286e2e5105b5cd746b/lib/util.js#L1
From:
To:
This only prevents peerjs to work with iPhone Mobile Safari.