From 5e8a5788c23986095a7b1f24750cc48d0bc53ad0 Mon Sep 17 00:00:00 2001 From: Mustafa Yontar Date: Wed, 8 Apr 2020 18:30:22 +0300 Subject: [PATCH] screen share system completed. but we need stop sharing button --- src/lib/RemoteFeed.vue | 9 ++-- src/lib/VueJanus.vue | 104 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 108 insertions(+), 5 deletions(-) diff --git a/src/lib/RemoteFeed.vue b/src/lib/RemoteFeed.vue index 64d4c28..69ad6bb 100644 --- a/src/lib/RemoteFeed.vue +++ b/src/lib/RemoteFeed.vue @@ -64,6 +64,7 @@ }, onSuccess (pluginHandle) { this.remoteFeed = pluginHandle; + alert(pluginHandle.id) this.remoteFeed.simulcastStarted = false; console.log('Remote feed success') var subscribe = { "request": "join", "room": this.room, "ptype": "subscriber", "feed": this.feedid, "private_id": this.mypvtid }; @@ -78,10 +79,10 @@ console.log('stream is strarted') this.$refs.feed_video.srcObject = stream - setInterval(() => { - console.log(this.remoteFeed.getBitrate()) - this.bitrate = this.remoteFeed.getBitrate() - },1000) + setInterval(this.feedInterval,1000) + }, + feedInterval () { + this.bitrate = this.remoteFeed.getBitrate() }, feedResponse (jsep) { var body = { "request": "start", "room": this.room } diff --git a/src/lib/VueJanus.vue b/src/lib/VueJanus.vue index 52ad4b8..c68f996 100644 --- a/src/lib/VueJanus.vue +++ b/src/lib/VueJanus.vue @@ -1,6 +1,37 @@