FS-11236 [verto_communicator] call useCamera property on video constraints
This commit is contained in:
parent
9bc84ac638
commit
15227e01f2
|
@ -448,10 +448,7 @@
|
||||||
getUserMedia({
|
getUserMedia({
|
||||||
constraints: {
|
constraints: {
|
||||||
audio: false,
|
audio: false,
|
||||||
video: {
|
video: { deviceId: params.useCamera },
|
||||||
//mandatory: self.options.videoParams,
|
|
||||||
//optional: []
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
localVideo: self.options.localVideo,
|
localVideo: self.options.localVideo,
|
||||||
onsuccess: function(e) {self.options.localVideoStream = e; console.log("local video ready");},
|
onsuccess: function(e) {self.options.localVideoStream = e; console.log("local video ready");},
|
||||||
|
@ -501,8 +498,7 @@
|
||||||
getUserMedia({
|
getUserMedia({
|
||||||
constraints: {
|
constraints: {
|
||||||
audio: false,
|
audio: false,
|
||||||
video: obj.options.videoParams
|
video: { deviceId: obj.options.useCamera },
|
||||||
|
|
||||||
},
|
},
|
||||||
localVideo: obj.options.localVideo,
|
localVideo: obj.options.localVideo,
|
||||||
onsuccess: function(e) {obj.options.localVideoStream = e; console.log("local video ready");},
|
onsuccess: function(e) {obj.options.localVideoStream = e; console.log("local video ready");},
|
||||||
|
|
Loading…
Reference in New Issue