Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions packages/vue/src/components/BaseVideo/BaseVideo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
>
<template v-if="data.fileWebm">
<source
:src="data.fileWebm"
:src="`${data.fileWebm}#t=0.1`"
type="video/webm"
/>
</template>
<template v-if="data.file">
<source
:src="data.file"
:src="`${data.file}#t=0.1`"
type="video/mp4"
/>
</template>
<template v-if="data.fileOgg">
<source
:src="data.fileOgg"
:src="`${data.fileOgg}#t=0.1`"
type="video/ogg"
/>
</template>
Expand All @@ -41,6 +41,10 @@
</div>
</template>
<script lang="ts">
/**
* Uses the Media Fragments URI (#t=0.1) to make sure iOS loads the first frame as a thumbnail
* TODO: remove #t=0.1 once we have implemented the video thumbnail/postcard
*/
import { defineComponent, type PropType } from 'vue'
import type { VideoObject } from './../../interfaces'
import BaseImagePlaceholder from './../BaseImagePlaceholder/BaseImagePlaceholder.vue'
Expand Down
Loading