Debug state of share Screen button
This commit is contained in:
parent
b9d9a78868
commit
7e6a8b477d
1 changed files with 8 additions and 3 deletions
|
@ -309,12 +309,17 @@ export class MediaManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
private enableScreenSharing() {
|
private enableScreenSharing() {
|
||||||
this.monitorClose.style.display = "none";
|
|
||||||
this.monitor.style.display = "block";
|
|
||||||
this.monitorBtn.classList.add("enabled");
|
|
||||||
this.getScreenMedia().then((stream) => {
|
this.getScreenMedia().then((stream) => {
|
||||||
this.triggerStartedScreenSharingCallbacks(stream);
|
this.triggerStartedScreenSharingCallbacks(stream);
|
||||||
|
this.monitorClose.style.display = "none";
|
||||||
|
this.monitor.style.display = "block";
|
||||||
|
this.monitorBtn.classList.add("enabled");
|
||||||
|
}, () => {
|
||||||
|
this.monitorClose.style.display = "block";
|
||||||
|
this.monitor.style.display = "none";
|
||||||
|
this.monitorBtn.classList.remove("enabled");
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private disableScreenSharing() {
|
private disableScreenSharing() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue