Firefox 41 disables the default (unreliable) STUN server https://wiki.mozilla.org/Media/WebRTC/ReleaseNotes/41
This commit is contained in:
parent
9b890464b8
commit
a95b3613e3
2 changed files with 2 additions and 16 deletions
|
@ -42,14 +42,7 @@ function getIPs(callback){
|
|||
optional: [{RtpDataChannels: true}]
|
||||
};
|
||||
|
||||
//firefox already has a default stun server in about:config
|
||||
// media.peerconnection.default_iceservers =
|
||||
// [{"url": "stun:stun.services.mozilla.com"}]
|
||||
var servers = undefined;
|
||||
|
||||
//add same stun server for chrome
|
||||
if(useWebKit)
|
||||
servers = {iceServers: [{urls: "stun:stun.services.mozilla.com"}]};
|
||||
var servers = {iceServers: [{urls: "stun:stun.services.mozilla.com"}]};
|
||||
|
||||
//construct a new RTCPeerConnection
|
||||
var pc = new RTCPeerConnection(servers, mediaConstraints);
|
||||
|
|
|
@ -52,14 +52,7 @@
|
|||
optional: [{RtpDataChannels: true}]
|
||||
};
|
||||
|
||||
//firefox already has a default stun server in about:config
|
||||
// media.peerconnection.default_iceservers =
|
||||
// [{"url": "stun:stun.services.mozilla.com"}]
|
||||
var servers = undefined;
|
||||
|
||||
//add same stun server for chrome
|
||||
if(useWebKit)
|
||||
servers = {iceServers: [{urls: "stun:stun.services.mozilla.com"}]};
|
||||
var servers = {iceServers: [{urls: "stun:stun.services.mozilla.com"}]};
|
||||
|
||||
//construct a new RTCPeerConnection
|
||||
var pc = new RTCPeerConnection(servers, mediaConstraints);
|
||||
|
|
Loading…
Reference in a new issue