From 51259e7c4264497938be96211611dcc225a1673b Mon Sep 17 00:00:00 2001 From: Hailey Date: Sat, 7 Sep 2024 12:11:18 -0700 Subject: [PATCH] Revert "[Video] Ensure loop doesn't stop" (#5209) --- src/view/com/util/post-embeds/VideoEmbed.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/view/com/util/post-embeds/VideoEmbed.tsx b/src/view/com/util/post-embeds/VideoEmbed.tsx index c11da707..9c3a34dd 100644 --- a/src/view/com/util/post-embeds/VideoEmbed.tsx +++ b/src/view/com/util/post-embeds/VideoEmbed.tsx @@ -110,11 +110,7 @@ function InnerWrapper({embed}: Props) { if (status === 'error') { setError(playerError ?? new Error('Unknown player error')) } - if ( - status === 'readyToPlay' && - oldStatus !== 'readyToPlay' && - oldStatus !== 'waitingToPlayAtSpecifiedRate' - ) { + if (status === 'readyToPlay' && oldStatus !== 'readyToPlay') { player.play() } },