Merge pull request #18 from KwadroNaut/master

Firefox 41 disables the default (unreliable) STUN server
This commit is contained in:
Daniel Roesler 2015-07-20 13:52:44 -07:00
commit ba63ef512c
2 changed files with 2 additions and 16 deletions

View file

@ -42,14 +42,7 @@ function getIPs(callback){
optional: [{RtpDataChannels: true}] optional: [{RtpDataChannels: true}]
}; };
//firefox already has a default stun server in about:config var servers = {iceServers: [{urls: "stun:stun.services.mozilla.com"}]};
// 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"}]};
//construct a new RTCPeerConnection //construct a new RTCPeerConnection
var pc = new RTCPeerConnection(servers, mediaConstraints); var pc = new RTCPeerConnection(servers, mediaConstraints);

View file

@ -52,14 +52,7 @@
optional: [{RtpDataChannels: true}] optional: [{RtpDataChannels: true}]
}; };
//firefox already has a default stun server in about:config var servers = {iceServers: [{urls: "stun:stun.services.mozilla.com"}]};
// 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"}]};
//construct a new RTCPeerConnection //construct a new RTCPeerConnection
var pc = new RTCPeerConnection(servers, mediaConstraints); var pc = new RTCPeerConnection(servers, mediaConstraints);