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>
|
<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…
Reference in New Issue
Block a user