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.
This commit is contained in:
Leonard Kim 2019-02-20 19:07:49 -08:00 committed by Paweł Domas
parent 03f8d8b51a
commit 8c8b09878c
1 changed files with 2 additions and 1 deletions

View File

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