From 29359baf6509141632da0d49f29abd6e7e2e0205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 7 Jun 2021 11:59:06 +0200 Subject: [PATCH] auto unmute on any control attempt #65. --- README.md | 2 +- client/src/app.vue | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 108769b..575acb3 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ For n.eko room management software visit https://github.com/m1k1o/neko-rooms. - Added HEALTHCHECK to Dockerfile. - Arguments in broadcast pipeline are optional, not positional and can be repeated `{url} {device} {display}`. - Chat messages are dense, when repeated, they are joined together. -- Start unmuted on reconnects. +- Start unmuted on reconnects and auto unmute on any control attempt. ### Roadmap & TODOs - Catch errors from gst pipeline, tell user if broadcast failed. diff --git a/client/src/app.vue b/client/src/app.vue index d555544..314aedc 100644 --- a/client/src/app.vue +++ b/client/src/app.vue @@ -187,10 +187,16 @@ } controlAttempt() { - if (this.shakeKbd || this.$accessor.remote.hosted) return + // auto unmute on any control attempt + if (this.$accessor.video.muted) { + this.$accessor.video.setMuted(false) + } - this.shakeKbd = true - setTimeout(() => (this.shakeKbd = false), 5000) + // shake keyboard if not hosting + if (!this.shakeKbd && !this.$accessor.remote.hosted) { + this.shakeKbd = true + setTimeout(() => (this.shakeKbd = false), 5000) + } } get about() {