Fixes stopping desktop sharing when changing video device to use.

This commit is contained in:
damencho 2017-10-17 13:47:39 -05:00
parent ade5290013
commit 7f7200b599
1 changed files with 8 additions and 1 deletions

View File

@ -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);
})