FS-11211 - [verto_communicator]: Adding turnServer and socketFallbackUrl options.

This commit is contained in:
netoguimaraes
2018-06-28 17:40:34 -03:00
parent 25e9376b29
commit 68e256597a
6 changed files with 39 additions and 10 deletions

View File

@@ -9,5 +9,11 @@
"autologin": "true",
"autocall": "3500",
"googlelogin": "true",
"wsURL": "wss://gamma.tollfreegateway.com/wss2"
"wsURL": "wss://gamma.tollfreegateway.com/wss2",
"socketFallbackUrl": "wss://gamma.tollfreegateway.com/wss2",
"turnServer": {
"urls": "turn:someturnserver.com:443?transport=tcp",
"credential": "1234",
"username": "username"
}
}

View File

@@ -41,6 +41,14 @@ vertoService.service('config', ['$rootScope', '$http', '$location', 'storage', '
verto.data.googleclientid = data.googleclientid;
}
if (data.wsFallbackURL) {
verto.data.wsFallbackURL = data.wsFallbackURL;
}
if (data.turnServer) {
verto.data.turnServer = data.turnServer;
}
angular.extend(verto.data, data);
/**

View File

@@ -175,6 +175,8 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
password: $cookieStore.get('verto_demo_passwd') || "1234",
hostname: window.location.hostname,
wsURL: ("wss://" + window.location.hostname + ":8082"),
socketFallbackUrl: null,
turnServer: null,
resCheckEnded: false
};
@@ -733,6 +735,8 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
login: data.login + '@' + data.hostname,
passwd: data.password,
socketUrl: data.wsURL,
socketFallbackUrl: data.socketFallbackUrl,
turnServer: data.turnServer,
tag: "webcam",
ringFile: "sounds/bell_ring2.wav",
audioParams: {