diff --git a/config.js b/config.js index 8364f1d48..ff0a27f19 100644 --- a/config.js +++ b/config.js @@ -25,6 +25,7 @@ var defaultConfig = { host: '162.242.219.26', port: 10000, path: '/', + secure: false, // other PeerJS config maxPeers: 15, diff --git a/index.html b/index.html index f8eb7fa85..c369e0920 100644 --- a/index.html +++ b/index.html @@ -720,30 +720,29 @@
Insight API server -
-
-
-
PeerJS server -
-
-
-
-
-
+ +
+
+ Videoconferencing + + +
+ +
diff --git a/js/controllers/settings.js b/js/controllers/settings.js index d0890cd31..9c9f21824 100644 --- a/js/controllers/settings.js +++ b/js/controllers/settings.js @@ -10,8 +10,8 @@ angular.module('copayApp.controllers').controller('SettingsController', $scope.networkKey = config.network.key; $scope.networkHost = config.network.host; $scope.networkPort = config.network.port; - - + $scope.networkSecure = config.network.secure || false; + $scope.disableVideo = config.disableVideo || true; $scope.$watch('networkName', function(net) { $scope.insightHost = net === 'testnet' ? 'test.insight.is' : 'live.insight.is'; @@ -22,6 +22,7 @@ angular.module('copayApp.controllers').controller('SettingsController', network.key = $scope.networkKey; network.host = $scope.networkHost; network.port = $scope.networkPort; + network.secure = $scope.networkSecure; localStorage.setItem('config', JSON.stringify({ networkName: $scope.networkName, @@ -33,7 +34,8 @@ angular.module('copayApp.controllers').controller('SettingsController', host: $scope.insightHost, port: $scope.insightPort }, - network: network + network: network, + disableVideo: $scope.disableVideo, }) ); diff --git a/js/models/network/WebRTC.js b/js/models/network/WebRTC.js index 764acb753..c0d8c2fba 100644 --- a/js/models/network/WebRTC.js +++ b/js/models/network/WebRTC.js @@ -31,7 +31,7 @@ function Network(opts) { ts:parseInt(64), }; this.opts = {}; - ['config', 'port', 'host', 'path', 'debug', 'key'].forEach(function(k) { + ['config', 'port', 'host', 'path', 'debug', 'key', 'secure'].forEach(function(k) { if (opts[k]) self.opts[k] = opts[k]; }); this.cleanUp();