提交 401aa24f authored 作者: Anthony Minessale's avatar Anthony Minessale

VERTO: expose audio mandatory constraints to demo and disable a few that seem to…

VERTO: expose audio mandatory constraints to demo and disable a few that seem to mess with audio quality
上级 cff5209c
This diff was suppressed by a .gitattributes entry.
......@@ -473,6 +473,11 @@ function init() {
"minWidth": "1280",
"minHeight": "720"
},
audioParams: {
googAutoGainControl: false,
googNoiseSuppression: false,
googHighpassFilter: false
},
iceServers: $("#use_stun").is(':checked')
},callbacks);
......
......@@ -78,6 +78,7 @@
userData: null,
iceServers: false,
videoParams: {},
audioParams: {},
callbacks: {
onICEComplete: function() {},
onICE: function() {},
......@@ -322,7 +323,10 @@
getUserMedia({
constraints: {
audio: true,
audio: {
mandatory: this.options.audioParams,
optional: []
},
video: this.options.useVideo ? {
mandatory: this.options.videoParams,
optional: []
......@@ -379,7 +383,10 @@
getUserMedia({
constraints: {
audio: true,
audio: {
mandatory: this.options.audioParams,
optional: []
},
video: this.options.useVideo ? {
mandatory: this.options.videoParams,
optional: []
......
......@@ -72,6 +72,7 @@
socketUrl: null,
tag: null,
videoParams: {},
audioParams: {},
iceServers: false,
ringSleep: 6000
},
......@@ -1498,6 +1499,7 @@
useAudio: dialog.audioStream,
useStereo: dialog.params.useStereo,
videoParams: verto.options.videoParams,
audioParams: verto.options.audioParams,
iceServers: verto.options.iceServers
});
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论