fixed: permision dialog show state + screen share button state

remotes/1693057678009958606/master
Tuğrul Gençoğlu 5 years ago
parent 714d78449f
commit 72d7f79477
  1. 8
      src/lib/VueJanus.vue

@ -280,7 +280,7 @@
}, },
onlocalstreamScreen (stream) { onlocalstreamScreen (stream) {
if(this.screenShareStarted) if(this.screenShareStarted)
this.screenShareStarted=false; this.screenShareStarted=true;
this.$refs.ownstreamscreen.srcObject = stream this.$refs.ownstreamscreen.srcObject = stream
}, },
@ -306,7 +306,9 @@
onlocalstream: this.onlocalstreamScreen onlocalstream: this.onlocalstreamScreen
} }
) )
this.screenShareStarted=true;
this.mozillaAlert=false;
this.chromeAlert=false;
}, },
screenShareStop(){ screenShareStop(){
var srcObject=this.$refs.ownstreamscreen.srcObject; var srcObject=this.$refs.ownstreamscreen.srcObject;
@ -316,6 +318,8 @@
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