From 10cdc436b818e92fb5744026c39e1e281f113d6b Mon Sep 17 00:00:00 2001 From: Hailey Date: Sat, 7 Sep 2024 11:54:51 -0700 Subject: [PATCH] [Video] Ensure loop doesn't stop (#5207) --- src/view/com/util/post-embeds/VideoEmbed.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/view/com/util/post-embeds/VideoEmbed.tsx b/src/view/com/util/post-embeds/VideoEmbed.tsx index 9c3a34dda8..c11da70797 100644 --- a/src/view/com/util/post-embeds/VideoEmbed.tsx +++ b/src/view/com/util/post-embeds/VideoEmbed.tsx @@ -110,7 +110,11 @@ function InnerWrapper({embed}: Props) { if (status === 'error') { setError(playerError ?? new Error('Unknown player error')) } - if (status === 'readyToPlay' && oldStatus !== 'readyToPlay') { + if ( + status === 'readyToPlay' && + oldStatus !== 'readyToPlay' && + oldStatus !== 'waitingToPlayAtSpecifiedRate' + ) { player.play() } },