mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-31 15:29:41 +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>
|
<template>
|
||||||
<div ref="component" class="component">
|
<div ref="component" class="component">
|
||||||
<div ref="container" class="player-container">
|
<div ref="container" class="player-container">
|
||||||
<video ref="video" />
|
<video ref="video" muted />
|
||||||
<neko-overlay
|
<neko-overlay
|
||||||
:webrtc="webrtc"
|
:webrtc="webrtc"
|
||||||
:control="state.control"
|
:control="state.control"
|
||||||
|
@ -395,6 +395,9 @@
|
||||||
Vue.set(this.state.connection, 'authenticated', true)
|
Vue.set(this.state.connection, 'authenticated', true)
|
||||||
this.websocketConnect()
|
this.websocketConnect()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// unmute on users first interaction
|
||||||
|
document.addEventListener('click', this.unmute, { once: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue