Skip to content

Commit

Permalink
[Video] Ensure loop doesn't stop (#5207)
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok authored Sep 7, 2024
1 parent 2842f66 commit 10cdc43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/view/com/util/post-embeds/VideoEmbed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
},
Expand Down

0 comments on commit 10cdc43

Please sign in to comment.