temporary hack fix
This commit is contained in:
@@ -102,9 +102,12 @@ function InnerWrapper({embed}: Props) {
|
|||||||
setPlayerStatus(status)
|
setPlayerStatus(status)
|
||||||
if (status === 'error') {
|
if (status === 'error') {
|
||||||
setError(playerError ?? new Error('Unknown player error'))
|
setError(playerError ?? new Error('Unknown player error'))
|
||||||
}
|
} else if (status === 'readyToPlay' && oldStatus !== 'readyToPlay') {
|
||||||
if (status === 'readyToPlay' && oldStatus !== 'readyToPlay') {
|
|
||||||
player.play()
|
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()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user