mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-30 23:09:01 +02:00
start muted and unmute for autoplay.
This commit is contained in:
parent
6bf28aa55d
commit
1d1b995ceb
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div ref="component" class="component">
|
||||
<div ref="container" class="player-container">
|
||||
<video ref="video" />
|
||||
<video ref="video" muted />
|
||||
<neko-overlay
|
||||
:webrtc="webrtc"
|
||||
:control="state.control"
|
||||
|
@ -395,6 +395,9 @@
|
|||
Vue.set(this.state.connection, 'authenticated', true)
|
||||
this.websocketConnect()
|
||||
})
|
||||
|
||||
// unmute on users first interaction
|
||||
document.addEventListener('click', this.unmute, { once: true })
|
||||
}
|
||||
|
||||
beforeDestroy() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue