fix autoplay
This commit is contained in:
parent
bbc6ba5f08
commit
cbe47ba8c5
@ -36,10 +36,6 @@
|
|||||||
dispatch('loadstart')
|
dispatch('loadstart')
|
||||||
|
|
||||||
player.cueVideoById(id)
|
player.cueVideoById(id)
|
||||||
|
|
||||||
if (!paused) {
|
|
||||||
player.playVideo()
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
export const play = () => enqueue((player) => {
|
export const play = () => enqueue((player) => {
|
||||||
@ -105,6 +101,10 @@
|
|||||||
loaded = true
|
loaded = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!paused) {
|
||||||
|
player.playVideo()
|
||||||
|
}
|
||||||
|
|
||||||
dispatch('canplay')
|
dispatch('canplay')
|
||||||
|
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user