diff options
author | Hailey <me@haileyok.com> | 2024-09-07 11:54:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-07 11:54:51 -0700 |
commit | 10cdc436b818e92fb5744026c39e1e281f113d6b (patch) | |
tree | 35c034b30e80c237faa88d782acc46dd1f170226 /src | |
parent | 2842f661db8aeb0154dd362a6b61b3edb808bef9 (diff) | |
download | voidsky-10cdc436b818e92fb5744026c39e1e281f113d6b.tar.zst |
[Video] Ensure loop doesn't stop (#5207)
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/util/post-embeds/VideoEmbed.tsx | 6 |
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() } }, |