From 15227e01f27d87ec0657452412d1398373f6899c Mon Sep 17 00:00:00 2001 From: Marcell Guilherme Costa da Silva Date: Wed, 18 Jul 2018 17:58:16 -0300 Subject: [PATCH] FS-11236 [verto_communicator] call useCamera property on video constraints --- html5/verto/js/src/jquery.FSRTC.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/html5/verto/js/src/jquery.FSRTC.js b/html5/verto/js/src/jquery.FSRTC.js index 46d8d5582c..39073ecbab 100644 --- a/html5/verto/js/src/jquery.FSRTC.js +++ b/html5/verto/js/src/jquery.FSRTC.js @@ -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");},