mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
VERTO: expose audio mandatory constraints to demo and disable a few that seem to mess with audio quality
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user