Increase stability to force stopped screen sharing

This commit is contained in:
Gregoire Parant 2021-01-06 17:09:17 +01:00
parent 178af22280
commit 1659fa400f

View File

@ -318,6 +318,8 @@ export class MediaManager {
const localScreenCapture = this.localScreenCapture;
this.getCamera().then((stream) => {
this.triggerStoppedScreenSharingCallbacks(localScreenCapture);
}).catch(() => { //catch error get camera
this.triggerStoppedScreenSharingCallbacks(localScreenCapture);
});
this.localScreenCapture = null;
}