From 8c8b09878ccdabee093bd64628b8839a85461d15 Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Wed, 20 Feb 2019 19:07:49 -0800 Subject: [PATCH] fix(screensharing): do not sync camera device id on start When a conference is started, the currently used camera device id is saved. I believe this is happening because lib-jitsi-meet does not use exact device id mathcing when calling getUserMedia, so it's possibl to request camera A but get camera B back because camera A is not available. When config.startScreenSharing is true, the syncing occurs and saves the desktop source id. So when screensharing is stopped, jitsi-meet requests that desktop source id instead of the preferred camera. --- conference.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conference.js b/conference.js index d350e2e072..73017dd40f 100644 --- a/conference.js +++ b/conference.js @@ -2315,7 +2315,8 @@ export default { })); } - if (this.localVideo) { + if (this.localVideo + && this.localVideo.videoType === 'camera') { dispatch(updateSettings({ cameraDeviceId: this.localVideo.getDeviceId() }));