Merge pull request #413 in FS/freeswitch from ~JMESQUITA/freeswitch:feature/FS-8010 to master

* commit '77a604f17fc9482b4326eb5930ad891678f32354':
  FS-8010 Add hardcoded params
This commit is contained in:
Brian West 2015-08-20 19:19:42 -05:00
commit 8f5a8a91cd
2 changed files with 9 additions and 6 deletions

View File

@ -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) {

View File

@ -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);