🐛 (video) test fix for music in background

This commit is contained in:
2020-07-12 02:44:34 +02:00
parent 0030bda535
commit 3f991b6953

View File

@@ -1,8 +1,18 @@
<template> <template>
<div class="chilled-music"> <div
<div class="plyr__video-embed" id="player" v-show="false"> class="chilled-music plyr__video-embed"
<iframe src="https://www.youtube-nocookie.com/embed/5qap5aO4i9A"></iframe> id="player"
</div> v-show="false"
allowfullscreen
allowtransparency
allow="autoplay"
>
<iframe
allowfullscreen
allowtransparency
allow="autoplay"
src="https://www.youtube-nocookie.com/embed/5qap5aO4i9A"
></iframe>
</div> </div>
</template> </template>
@@ -48,7 +58,19 @@ export default defineComponent({
} }
onMounted(() => { 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('play', onPlay)
chilledcow.video.on('pause', onPause) chilledcow.video.on('pause', onPause)
chilledcow.video.on('ready', () => { chilledcow.video.on('ready', () => {