Merge branch 'master' into some-view-changes

# Conflicts:
#	src/App.vue
#	src/lib/VueJanus.vue
pull/18/head
Mustafa Yontar 5 years ago
commit 47de21f73a
  1. 14
      src/lib/VueJanus.vue

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

Loading…
Cancel
Save