about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-09-07 11:54:51 -0700
committerGitHub <noreply@github.com>2024-09-07 11:54:51 -0700
commit10cdc436b818e92fb5744026c39e1e281f113d6b (patch)
tree35c034b30e80c237faa88d782acc46dd1f170226 /src
parent2842f661db8aeb0154dd362a6b61b3edb808bef9 (diff)
downloadvoidsky-10cdc436b818e92fb5744026c39e1e281f113d6b.tar.zst
[Video] Ensure loop doesn't stop (#5207)
Diffstat (limited to 'src')
-rw-r--r--src/view/com/util/post-embeds/VideoEmbed.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/view/com/util/post-embeds/VideoEmbed.tsx b/src/view/com/util/post-embeds/VideoEmbed.tsx
index 9c3a34dda..c11da7079 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()
           }
         },