MediaAttachmentGrid: fix autoplay on iOS

This commit is contained in:
thislight 2024-09-28 22:39:33 +08:00
parent 108e8fc87c
commit 63603e049d
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E

View file

@ -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
/>
);