pleroma-fe/src/components/video_attachment/video_attachment.vue
Haelwenn (lanodan) Monnier 0089d1e8d1
video_attachment: Only preload metadata
This hints browsers that only the metadata and maybe the first few frames are
needed. Which avoids downloading the entire video, which isn't really needed
in our case.
2020-11-19 18:01:21 +01:00

16 lines
331 B
Vue

<template>
<video
class="video"
preload="metadata"
:src="attachment.url"
:loop="loopVideo"
:controls="controls"
:alt="attachment.description"
:title="attachment.description"
playsinline
@playing="onPlaying"
@pause="onPaused"
/>
</template>
<script src="./video_attachment.js"></script>