fixed: wrong screen share button state when screen sharing aborted

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) {
if(this.screenShareStarted)
this.screenShareStarted=false;
this.$refs.ownstreamscreen.srcObject = stream
},
screenShareSwitch () {
@ -279,8 +282,6 @@
var unpublish = { request: 'unpublish' };
this.janusScreenShareHandle.send({ message: unpublish });
this.janusScreenShareHandle.detach();
this.screenShareStarted=false;
},
screenShare () {
if(!this.$janus.isExtensionEnabled()) {