mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
start muted and unmute for autoplay.
This commit is contained in:
parent
6bf28aa55d
commit
1d1b995ceb
@ -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…
Reference in New Issue
Block a user