From e16efb256e34d4215dbf2e22d5b4c54c0b73bd1c Mon Sep 17 00:00:00 2001 From: Hailey Date: Tue, 10 Sep 2024 18:03:07 -0700 Subject: [PATCH] tweak --- src/view/com/util/post-embeds/VideoEmbed.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/view/com/util/post-embeds/VideoEmbed.tsx b/src/view/com/util/post-embeds/VideoEmbed.tsx index 2961505e33..04f158003e 100644 --- a/src/view/com/util/post-embeds/VideoEmbed.tsx +++ b/src/view/com/util/post-embeds/VideoEmbed.tsx @@ -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() } },