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