mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
FS-9608 [verto_communicator] [verto] Passing audio params directly to audio object and updating goog settings
This commit is contained in:
parent
8fa08df699
commit
5957beafa2
@ -475,27 +475,17 @@
|
|||||||
audio = false;
|
audio = false;
|
||||||
} else {
|
} else {
|
||||||
audio = {
|
audio = {
|
||||||
//mandatory: {},
|
|
||||||
//optional: []
|
|
||||||
advanced: []
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (obj.options.audioParams) {
|
||||||
|
audio = obj.options.audioParams;
|
||||||
|
}
|
||||||
|
|
||||||
if (obj.options.useMic !== "any") {
|
if (obj.options.useMic !== "any") {
|
||||||
//audio.optional = [{sourceId: obj.options.useMic}]
|
//audio.optional = [{sourceId: obj.options.useMic}]
|
||||||
audio.deviceId = {exact: obj.options.useMic};
|
audio.deviceId = {exact: obj.options.useMic};
|
||||||
}
|
}
|
||||||
|
|
||||||
//FIXME
|
|
||||||
if (obj.options.audioParams) {
|
|
||||||
for (var key in obj.options.audioParams) {
|
|
||||||
var con = {};
|
|
||||||
//con[key] = obj.options.audioParams[key];
|
|
||||||
if (obj.options.audioParams[key]) {
|
|
||||||
con.exact = key;
|
|
||||||
audio.advanced.push(con);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,16 @@
|
|||||||
if (storage.data.autoBand) {
|
if (storage.data.autoBand) {
|
||||||
$scope.testSpeed();
|
$scope.testSpeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var audioParams = {
|
||||||
|
googEchoCancellation: storage.data.googEchoCancellation === undefined ? true : storage.data.googEchoCancellation,
|
||||||
|
googNoiseSuppression: storage.data.googNoiseSuppression === undefined ? true : storage.data.googNoiseSuppression,
|
||||||
|
googHighpassFilter: storage.data.googHighpassFilter === undefined ? true : storage.data.googHighpassFilter,
|
||||||
|
googAutoGainControl: storage.data.googAutoGainControl === undefined ? true : storage.data.googAutoGainControl,
|
||||||
|
googAutoGainControl2: storage.data.googAutoGainControl === undefined ? true : storage.data.googAutoGainControl
|
||||||
|
};
|
||||||
|
verto.data.instance.options.audioParams = audioParams;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.changedLanguage = function(langKey){
|
$scope.changedLanguage = function(langKey){
|
||||||
|
@ -709,7 +709,6 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
|
|||||||
socketUrl: data.wsURL,
|
socketUrl: data.wsURL,
|
||||||
tag: "webcam",
|
tag: "webcam",
|
||||||
ringFile: "sounds/bell_ring2.wav",
|
ringFile: "sounds/bell_ring2.wav",
|
||||||
// TODO: Add options for this.
|
|
||||||
audioParams: {
|
audioParams: {
|
||||||
googEchoCancellation: storage.data.googEchoCancellation === undefined ? true : storage.data.googEchoCancellation,
|
googEchoCancellation: storage.data.googEchoCancellation === undefined ? true : storage.data.googEchoCancellation,
|
||||||
googNoiseSuppression: storage.data.googNoiseSuppression === undefined ? true : storage.data.googNoiseSuppression,
|
googNoiseSuppression: storage.data.googNoiseSuppression === undefined ? true : storage.data.googNoiseSuppression,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user