temporary hack fix

This commit is contained in:
Hailey
2024-09-10 17:56:54 -07:00
parent b37b64fb49
commit b515d8ba92
+5 -2
View File
@@ -102,9 +102,12 @@ function InnerWrapper({embed}: Props) {
setPlayerStatus(status)
if (status === 'error') {
setError(playerError ?? new Error('Unknown player error'))
}
if (status === 'readyToPlay' && oldStatus !== 'readyToPlay') {
} 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
// for looping with captions
} else if (status === 'playbackBufferEmpty') {
player.replay()
}
},
)