FS-11236 [verto_communicator] call useCamera property on video constraints

This commit is contained in:
Marcell Guilherme Costa da Silva 2018-07-18 17:58:16 -03:00
parent 9bc84ac638
commit 15227e01f2
1 changed files with 2 additions and 6 deletions

View File

@ -448,10 +448,7 @@
getUserMedia({
constraints: {
audio: false,
video: {
//mandatory: self.options.videoParams,
//optional: []
},
video: { deviceId: params.useCamera },
},
localVideo: self.options.localVideo,
onsuccess: function(e) {self.options.localVideoStream = e; console.log("local video ready");},
@ -501,8 +498,7 @@
getUserMedia({
constraints: {
audio: false,
video: obj.options.videoParams
video: { deviceId: obj.options.useCamera },
},
localVideo: obj.options.localVideo,
onsuccess: function(e) {obj.options.localVideoStream = e; console.log("local video ready");},