Revert "[Video] Ensure loop doesn't stop" (#5209)

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

View File

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