Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes stopping desktop sharing when changing video device to use.

damencho7f7200b59931
diff --git a/conference.js b/conference.js
index d451509405..6eb558969c 100644
--- a/conference.js
+++ b/conference.js
@@ -2195,7 +2195,14 @@ export default {
return stream;
})
.then(stream => {
- this.useVideoStream(stream);
+ // if we are screen sharing we do not want to stop it
+ if (this.isSharingScreen) {
+ return Promise.resolve();
+ }
+
+ return this.useVideoStream(stream);
+ })
+ .then(() => {
logger.log('switched local video device');
APP.settings.setCameraDeviceId(cameraDeviceId, true);
})