From a95b3613e3ee83d2d51cfb184d334767cf71e486 Mon Sep 17 00:00:00 2001 From: kwadronaut Date: Mon, 20 Jul 2015 10:32:33 +0200 Subject: [PATCH] Firefox 41 disables the default (unreliable) STUN server https://wiki.mozilla.org/Media/WebRTC/ReleaseNotes/41 --- README.md | 9 +-------- index.html | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index c331650..f2517fa 100644 --- a/README.md +++ b/README.md @@ -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); diff --git a/index.html b/index.html index 3e8569c..f9edefd 100644 --- a/index.html +++ b/index.html @@ -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);