Increase stability to force stopped screen sharing
This commit is contained in:
parent
178af22280
commit
1659fa400f
@ -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…
x
Reference in New Issue
Block a user