|
|
@ -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()) { |
|
|
|