|
|
|
@ -180,7 +180,8 @@ |
|
|
|
|
deviceSelectDialog: false, |
|
|
|
|
noVid: false, |
|
|
|
|
shareScreenId: null, |
|
|
|
|
remoteStreams: [] |
|
|
|
|
remoteStreams: [], |
|
|
|
|
screenShareStarted: false |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
name: "VueJanus", |
|
|
|
@ -252,7 +253,18 @@ |
|
|
|
|
onlocalstream: this.onlocalstreamScreen |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
this.screenShareStarted=true; |
|
|
|
|
}, |
|
|
|
|
screenShareStop(){ |
|
|
|
|
var srcObject=this.$refs.ownstreamscreen.srcObject; |
|
|
|
|
for (const track of srcObject.getTracks()) { |
|
|
|
|
track.stop(); |
|
|
|
|
} |
|
|
|
|
var unpublish = { request: 'unpublish' }; |
|
|
|
|
this.janusScreenShareHandle.send({ message: unpublish }); |
|
|
|
|
this.janusScreenShareHandle.detach(); |
|
|
|
|
|
|
|
|
|
this.screenShareStarted=false; |
|
|
|
|
}, |
|
|
|
|
screenShare () { |
|
|
|
|
if(!this.$janus.isExtensionEnabled()) { |
|
|
|
|