mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 00:11:48 -06:00
auto unmute on any control attempt #65.
This commit is contained in:
+9
-3
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user