MediaAttachmentGrid: fix autoplay on iOS

This commit is contained in:
thislight 2024-09-28 22:39:33 +08:00
parent fea645949f
commit ae93725bf1

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