fix autoplay
This commit is contained in:
parent
bbc6ba5f08
commit
cbe47ba8c5
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue