Use Mozilla STUN server in apprtc demo for FF. Currently FF cannot work with Google STUN server as it expects XOR-MAPPED address while Google STUN server provides MAPPED address.

R=dutton@google.com

Review URL: https://webrtc-codereview.appspot.com/1849004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4388 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
vikasmarwaha@webrtc.org
2013-07-23 22:06:51 +00:00
parent d102e66ef9
commit 59fb7a60f2

View File

@@ -123,6 +123,10 @@
} }
function createPeerConnection() { function createPeerConnection() {
// For FF, use Mozilla STUN server.
if (webrtcDetectedBrowser === "firefox") {
pc_config = {"iceServers":[{"url":"stun:stun.services.mozilla.com"}]};
}
try { try {
// Create an RTCPeerConnection via the polyfill (adapter.js). // Create an RTCPeerConnection via the polyfill (adapter.js).
pc = new RTCPeerConnection(pcConfig, pcConstraints); pc = new RTCPeerConnection(pcConfig, pcConstraints);