This commit is contained in:
Brian West 2017-09-20 14:37:48 -05:00
parent fbd07d810d
commit 4772b73bcc
1 changed files with 3 additions and 14 deletions

View File

@ -668,20 +668,9 @@
function FSRTCPeerConnection(options) { function FSRTCPeerConnection(options) {
var gathering = false, done = false; var gathering = false, done = false;
var config = {}; var config = {};
var default_ice; var default_ice = {
urls: ['stun:stun.l.google.com:19302']
};
if (navigator.appVersion.indexOf('Edge') > -1) {
default_ice = {
urls: ['turn:turn-testdrive.cloudapp.net:3478?transport=udp'],
username: "redmond",
credential: "redmond123"
};
} else {
default_ice = {
urls: ['stun:stun.l.google.com:19302']
}
}
if (options.iceServers) { if (options.iceServers) {
if (typeof(options.iceServers) === "boolean") { if (typeof(options.iceServers) === "boolean") {