diff --git a/static/js/controllers/appcontroller.js b/static/js/controllers/appcontroller.js index bc35d1ac..2c2fda09 100644 --- a/static/js/controllers/appcontroller.js +++ b/static/js/controllers/appcontroller.js @@ -56,8 +56,8 @@ define(["jquery", "angular", "underscore"], function($, angular, _) { videoLeakyBucket: true, videoNoiseReduction: false }, - webrtc: { - turn: { + turn: { + clientSideTurn: { urls: [], username: '', password: '' diff --git a/static/js/directives/settings.js b/static/js/directives/settings.js index 52bf07fa..1f69f46b 100644 --- a/static/js/directives/settings.js +++ b/static/js/directives/settings.js @@ -91,7 +91,7 @@ define(['jquery', 'underscore', 'text!partials/settings.html'], function($, _, t if (form.$valid && form.$dirty) { var user = $scope.user; $scope.update(user); - turnSettings.update($scope.user.settings.webrtc.turn); + turnSettings.update($scope.user.settings.turn.clientSideTurn); if ($scope.rememberSettings) { userSettingsData.save(user); localStorage.setItem("mediastream-language", user.settings.language || ""); diff --git a/static/js/services/turnsettings.js b/static/js/services/turnsettings.js index b02cf3db..221f5ce0 100644 --- a/static/js/services/turnsettings.js +++ b/static/js/services/turnsettings.js @@ -50,7 +50,7 @@ define([], function() { // Overwrite server Turn settings with user settings when loading app appData.e.one("userSettingsLoaded", function(event, loadedUser, user) { if (user) { - updateTurnSettings(user.settings.webrtc.turn); + updateTurnSettings(user.settings.turn.clientSideTurn); } }); // Get server site TURN settings diff --git a/static/partials/settings.html b/static/partials/settings.html index d3c90f2b..66b76e88 100644 --- a/static/partials/settings.html +++ b/static/partials/settings.html @@ -289,20 +289,20 @@