auto unmute on any control attempt #65.

This commit is contained in:
Miroslav Šedivý 2021-06-07 11:59:06 +02:00
parent 305271916c
commit 29359baf65
2 changed files with 10 additions and 4 deletions

View File

@ -69,7 +69,7 @@ For n.eko room management software visit https://github.com/m1k1o/neko-rooms.
- Added HEALTHCHECK to Dockerfile. - Added HEALTHCHECK to Dockerfile.
- Arguments in broadcast pipeline are optional, not positional and can be repeated `{url} {device} {display}`. - 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. - 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 ### Roadmap & TODOs
- Catch errors from gst pipeline, tell user if broadcast failed. - Catch errors from gst pipeline, tell user if broadcast failed.

View File

@ -187,10 +187,16 @@
} }
controlAttempt() { 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 // shake keyboard if not hosting
setTimeout(() => (this.shakeKbd = false), 5000) if (!this.shakeKbd && !this.$accessor.remote.hosted) {
this.shakeKbd = true
setTimeout(() => (this.shakeKbd = false), 5000)
}
} }
get about() { get about() {