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

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