Fixes stopping desktop sharing when changing video device to use.
This commit is contained in:
parent
ade5290013
commit
7f7200b599
|
@ -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);
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue