From 714d78449f2bb984612747bb48fec27d4526528a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9Frul=20Gen=C3=A7o=C4=9Flu?= Date: Sun, 12 Apr 2020 01:28:28 +0300 Subject: [PATCH 1/2] added tooltip for buttons --- src/lib/VueJanus.vue | 98 +++++++++++++++++++++++++++++--------------- 1 file changed, 66 insertions(+), 32 deletions(-) diff --git a/src/lib/VueJanus.vue b/src/lib/VueJanus.vue index 7801da1..1937185 100644 --- a/src/lib/VueJanus.vue +++ b/src/lib/VueJanus.vue @@ -107,6 +107,7 @@ direction="top" open-on-hover > + - - mdi-pdf-box - - mdi-compare - - - mdi-camera-outline - - - mdi-monitor-screenshot - + + + + + Toggle Share PDF + + + + + + Toggle Theme + + + + + + Toggle Camera + + + + + + Toggle Share Screen + -- 2.25.1 From 72d7f794770bd1ab9cbd96689d325954327833db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9Frul=20Gen=C3=A7o=C4=9Flu?= Date: Sun, 12 Apr 2020 01:54:17 +0300 Subject: [PATCH 2/2] fixed: permision dialog show state + screen share button state --- src/lib/VueJanus.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/VueJanus.vue b/src/lib/VueJanus.vue index 1937185..d08e7c4 100644 --- a/src/lib/VueJanus.vue +++ b/src/lib/VueJanus.vue @@ -280,7 +280,7 @@ }, onlocalstreamScreen (stream) { if(this.screenShareStarted) - this.screenShareStarted=false; + this.screenShareStarted=true; this.$refs.ownstreamscreen.srcObject = stream }, @@ -306,7 +306,9 @@ onlocalstream: this.onlocalstreamScreen } ) - this.screenShareStarted=true; + + this.mozillaAlert=false; + this.chromeAlert=false; }, screenShareStop(){ var srcObject=this.$refs.ownstreamscreen.srcObject; @@ -316,6 +318,8 @@ var unpublish = { request: 'unpublish' }; this.janusScreenShareHandle.send({ message: unpublish }); this.janusScreenShareHandle.detach(); + + this.screenShareStarted=false; }, screenShare () { if(!this.$janus.isExtensionEnabled()) { -- 2.25.1