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:
parent
03f8d8b51a
commit
8c8b09878c
|
@ -2315,7 +2315,8 @@ export default {
|
|||
}));
|
||||
}
|
||||
|
||||
if (this.localVideo) {
|
||||
if (this.localVideo
|
||||
&& this.localVideo.videoType === 'camera') {
|
||||
dispatch(updateSettings({
|
||||
cameraDeviceId: this.localVideo.getDeviceId()
|
||||
}));
|
||||
|
|
Loading…
Reference in New Issue