This commit is contained in:
Hailey
2024-09-10 18:03:07 -07:00
parent b515d8ba92
commit e16efb256e
+6 -2
View File
@@ -104,9 +104,13 @@ function InnerWrapper({embed}: Props) {
setError(playerError ?? new Error('Unknown player error'))
} else if (status === 'readyToPlay' && oldStatus !== 'readyToPlay') {
player.play()
// @ts-expect-error This exists! It is a temporary hack fix that we can OTA while pending the native real fix
} else if (
// @ts-expect-error - Read below
status === 'playbackBufferEmpty' &&
oldStatus === 'readyToPlay'
) {
// This status exists! It is a temporary hack fix that we can OTA while pending the native real fix
// for looping with captions
} else if (status === 'playbackBufferEmpty') {
player.replay()
}
},