[Video] Ensure loop doesn't stop (#5207)

zio/stable
Hailey 2024-09-07 11:54:51 -07:00 committed by GitHub
parent 2842f661db
commit 10cdc436b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -110,7 +110,11 @@ function InnerWrapper({embed}: Props) {
if (status === 'error') {
setError(playerError ?? new Error('Unknown player error'))
}
if (status === 'readyToPlay' && oldStatus !== 'readyToPlay') {
if (
status === 'readyToPlay' &&
oldStatus !== 'readyToPlay' &&
oldStatus !== 'waitingToPlayAtSpecifiedRate'
) {
player.play()
}
},