🐛 (video) test fix for music in background
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
<template>
|
||||
<div class="chilled-music">
|
||||
<div class="plyr__video-embed" id="player" v-show="false">
|
||||
<iframe src="https://www.youtube-nocookie.com/embed/5qap5aO4i9A"></iframe>
|
||||
</div>
|
||||
<div
|
||||
class="chilled-music plyr__video-embed"
|
||||
id="player"
|
||||
v-show="false"
|
||||
allowfullscreen
|
||||
allowtransparency
|
||||
allow="autoplay"
|
||||
>
|
||||
<iframe
|
||||
allowfullscreen
|
||||
allowtransparency
|
||||
allow="autoplay"
|
||||
src="https://www.youtube-nocookie.com/embed/5qap5aO4i9A"
|
||||
></iframe>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -48,7 +58,19 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
chilledcow.video = new Plyr('#player')
|
||||
chilledcow.video = new Plyr('#player', {
|
||||
youtube: {
|
||||
noCookie: true,
|
||||
rel: 0,
|
||||
showinfo: 0,
|
||||
iv_load_policy: 3,
|
||||
modestbranding: 1
|
||||
},
|
||||
quality: {
|
||||
default: 240,
|
||||
options: [240]
|
||||
}
|
||||
})
|
||||
chilledcow.video.on('play', onPlay)
|
||||
chilledcow.video.on('pause', onPause)
|
||||
chilledcow.video.on('ready', () => {
|
||||
|
||||
Reference in New Issue
Block a user