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.
pull/3920/head jitsi-meet_3565
Leonard Kim 6 years ago committed by Paweł Domas
parent 03f8d8b51a
commit 8c8b09878c
  1. 3
      conference.js

@ -2315,7 +2315,8 @@ export default {
}));
}
if (this.localVideo) {
if (this.localVideo
&& this.localVideo.videoType === 'camera') {
dispatch(updateSettings({
cameraDeviceId: this.localVideo.getDeviceId()
}));

Loading…
Cancel
Save