[Video] Ensure loop doesn't stop (#5207)
parent
2842f661db
commit
10cdc436b8
|
@ -110,7 +110,11 @@ function InnerWrapper({embed}: Props) {
|
||||||
if (status === 'error') {
|
if (status === 'error') {
|
||||||
setError(playerError ?? new Error('Unknown player error'))
|
setError(playerError ?? new Error('Unknown player error'))
|
||||||
}
|
}
|
||||||
if (status === 'readyToPlay' && oldStatus !== 'readyToPlay') {
|
if (
|
||||||
|
status === 'readyToPlay' &&
|
||||||
|
oldStatus !== 'readyToPlay' &&
|
||||||
|
oldStatus !== 'waitingToPlayAtSpecifiedRate'
|
||||||
|
) {
|
||||||
player.play()
|
player.play()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue