mirror of https://github.com/elk-zone/elk.git
fix: video autoplay (#587)
This commit is contained in:
parent
12942095de
commit
ba91e0421e
|
@ -80,8 +80,11 @@ const type = $computed(() => {
|
||||||
<template v-else-if="type === 'gifv'">
|
<template v-else-if="type === 'gifv'">
|
||||||
<video
|
<video
|
||||||
:poster="attachment.previewUrl"
|
:poster="attachment.previewUrl"
|
||||||
|
preload="none"
|
||||||
loop
|
loop
|
||||||
|
playsinline
|
||||||
autoplay
|
autoplay
|
||||||
|
muted
|
||||||
border="~ base"
|
border="~ base"
|
||||||
object-cover
|
object-cover
|
||||||
:width="attachment.meta?.original?.width"
|
:width="attachment.meta?.original?.width"
|
||||||
|
|
Loading…
Reference in New Issue