VERTO: expose audio mandatory constraints to demo and disable a few that seem to mess with audio quality

This commit is contained in:
Anthony Minessale
2014-10-13 19:26:20 -04:00
parent cff5209ca3
commit 401aa24f4a
4 changed files with 21 additions and 7 deletions

View File

@@ -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: []

View File

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