|
|
@ -180,7 +180,8 @@ |
|
|
|
deviceSelectDialog: false, |
|
|
|
deviceSelectDialog: false, |
|
|
|
noVid: false, |
|
|
|
noVid: false, |
|
|
|
shareScreenId: null, |
|
|
|
shareScreenId: null, |
|
|
|
remoteStreams: [] |
|
|
|
remoteStreams: [], |
|
|
|
|
|
|
|
screenShareStarted: false |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
name: "VueJanus", |
|
|
|
name: "VueJanus", |
|
|
@ -252,7 +253,18 @@ |
|
|
|
onlocalstream: this.onlocalstreamScreen |
|
|
|
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 () { |
|
|
|
screenShare () { |
|
|
|
if(!this.$janus.isExtensionEnabled()) { |
|
|
|
if(!this.$janus.isExtensionEnabled()) { |
|
|
|