From: Joao Mesquita Date: Thu, 20 Aug 2015 23:53:26 +0000 (-0300) Subject: FS-8010 Add hardcoded params X-Git-Tag: v1.6.2~137^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77a604f17fc9482b4326eb5930ad891678f32354;p=thirdparty%2Ffreeswitch.git FS-8010 Add hardcoded params FS-8010 Make audio settings configurable as well. UI must be reviewed because it now scrolls on modal appearance. --- diff --git a/html5/verto/verto_communicator/js/storage-service.js b/html5/verto/verto_communicator/js/storage-service.js index 616839eaa1..7fd85295ff 100644 --- a/html5/verto/verto_communicator/js/storage-service.js +++ b/html5/verto/verto_communicator/js/storage-service.js @@ -35,7 +35,10 @@ storageService.service('storage', ['$rootScope', '$localStorage', outgoingBandwidth: '', incomingBandwidth: '', vidQual: '', - askRecoverCall: true + askRecoverCall: false, + googNoiseSuppression: false, + googHighpassFilter: false, + googEchoCancellation: false }); function changeData(verto_data) { diff --git a/html5/verto/verto_communicator/js/verto-service.js b/html5/verto/verto_communicator/js/verto-service.js index c568792971..c319f45862 100644 --- a/html5/verto/verto_communicator/js/verto-service.js +++ b/html5/verto/verto_communicator/js/verto-service.js @@ -89,8 +89,8 @@ var bandwidth = [{ var vertoService = angular.module('vertoService', ['ngCookies']); -vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', - function($rootScope, $cookieStore, $location) { +vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'storage', + function($rootScope, $cookieStore, $location, storage) { var data = { // Connection data. instance: null, @@ -554,9 +554,9 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', videoParams: getVideoParams(), // TODO: Add options for this. audioParams: { - googAutoGainControl: false, - googNoiseSuppression: false, - googHighpassFilter: false + googEchoCancellation: storage.data.googEchoCancellation || false, + googNoiseSuppression: storage.data.googNoiseSuppression || false, + googHighpassFilter: storage.data.googHighpassFilter || false }, iceServers: data.useSTUN }, callbacks);