From 63603e049d35a7e55e2d2a4514fec23aff2197ce Mon Sep 17 00:00:00 2001 From: thislight Date: Sat, 28 Sep 2024 22:39:33 +0800 Subject: [PATCH] MediaAttachmentGrid: fix autoplay on iOS --- src/timelines/MediaAttachmentGrid.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/timelines/MediaAttachmentGrid.tsx b/src/timelines/MediaAttachmentGrid.tsx index f41477d..a88d7a6 100644 --- a/src/timelines/MediaAttachmentGrid.tsx +++ b/src/timelines/MediaAttachmentGrid.tsx @@ -109,8 +109,10 @@ const MediaAttachmentGrid: Component<{ src={item.url || undefined} style={style()} onLoadedMetadata={[setLoaded, true]} - autoplay={true} + autoplay={false} controls + playsinline /* or safari on iOS will play in full-screen */ + loop /> );