fixed: wrong screen share button state when screen sharing aborted

remotes/1693057678009958606/master
Tuğrul Gençoğlu 5 years ago
parent dd8f2b1f06
commit e2dc6f9388
  1. 5
      src/lib/VueJanus.vue

@ -245,6 +245,9 @@
} }
}, },
onlocalstreamScreen (stream) { onlocalstreamScreen (stream) {
if(this.screenShareStarted)
this.screenShareStarted=false;
this.$refs.ownstreamscreen.srcObject = stream this.$refs.ownstreamscreen.srcObject = stream
}, },
screenShareSwitch () { screenShareSwitch () {
@ -279,8 +282,6 @@
var unpublish = { request: 'unpublish' }; var unpublish = { request: 'unpublish' };
this.janusScreenShareHandle.send({ message: unpublish }); this.janusScreenShareHandle.send({ message: unpublish });
this.janusScreenShareHandle.detach(); this.janusScreenShareHandle.detach();
this.screenShareStarted=false;
}, },
screenShare () { screenShare () {
if(!this.$janus.isExtensionEnabled()) { if(!this.$janus.isExtensionEnabled()) {

Loading…
Cancel
Save