Increase stability to force stopped screen sharing
This commit is contained in:
parent
178af22280
commit
1659fa400f
1 changed files with 2 additions and 0 deletions
|
@ -318,6 +318,8 @@ export class MediaManager {
|
||||||
const localScreenCapture = this.localScreenCapture;
|
const localScreenCapture = this.localScreenCapture;
|
||||||
this.getCamera().then((stream) => {
|
this.getCamera().then((stream) => {
|
||||||
this.triggerStoppedScreenSharingCallbacks(localScreenCapture);
|
this.triggerStoppedScreenSharingCallbacks(localScreenCapture);
|
||||||
|
}).catch(() => { //catch error get camera
|
||||||
|
this.triggerStoppedScreenSharingCallbacks(localScreenCapture);
|
||||||
});
|
});
|
||||||
this.localScreenCapture = null;
|
this.localScreenCapture = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue