fixed: wrong screen share button state when screen sharing aborted #19

Merged
xcoder merged 1 commits from gencoglutugrul/projectx:master into master 5 years ago
  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