fix autoplay

This commit is contained in:
wryk 2021-11-06 22:43:43 +01:00
parent bbc6ba5f08
commit cbe47ba8c5
1 changed files with 5 additions and 5 deletions

View File

@ -36,10 +36,6 @@
dispatch('loadstart')
player.cueVideoById(id)
if (!paused) {
player.playVideo()
}
})
export const play = () => enqueue((player) => {
@ -105,6 +101,10 @@
loaded = true
}
if (!paused) {
player.playVideo()
}
dispatch('canplay')
break
@ -149,4 +149,4 @@
player.destroy()
}
})
</script>
</script>