From: Marcell Guilherme Costa da Silva Date: Wed, 18 Jul 2018 20:58:16 +0000 (-0300) Subject: FS-11236 [verto_communicator] call useCamera property on video constraints X-Git-Tag: v1.8.1~3^2~210^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15227e01f27d87ec0657452412d1398373f6899c;p=thirdparty%2Ffreeswitch.git FS-11236 [verto_communicator] call useCamera property on video constraints --- 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");},