UX: Disable preloading in live player

This commit is contained in:
Michael Mayer 2021-01-11 18:27:33 +01:00
parent 27d5455153
commit c949ec95ce
4 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,7 @@
@click.stop.prevent="onClick($event, index)"
>
<v-layout v-if="photo.Type === 'live'" class="live-player">
<video :key="photo.ID" width="500" height="500" autoplay loop muted playsinline>
<video :key="photo.ID" width="500" height="500" preload="none" :poster="photo.thumbnailUrl('tile_500')" autoplay loop muted playsinline>
<source :src="photo.videoUrl()" type="video/mp4">
</video>
</v-layout>

View file

@ -42,7 +42,7 @@
@click.stop.prevent="onClick($event, index)"
>
<v-layout v-if="photo.Type === 'live'" class="live-player">
<video :key="photo.ID" width="224" height="224" autoplay loop muted playsinline>
<video :key="photo.ID" width="224" height="224" preload="none" :poster="photo.thumbnailUrl('tile_224')" autoplay loop muted playsinline>
<source :src="photo.videoUrl()" type="video/mp4">
</video>
</v-layout>

View file

@ -39,7 +39,7 @@
@click.stop.prevent="onClick($event, index)"
>
<v-layout v-if="photo.Type === 'live'" class="live-player">
<video :key="photo.ID" width="500" height="500" autoplay loop muted playsinline>
<video :key="photo.ID" width="500" height="500" preload="none" :poster="photo.thumbnailUrl('tile_500')" autoplay loop muted playsinline>
<source :src="photo.videoUrl()" type="video/mp4">
</video>
</v-layout>

View file

@ -38,7 +38,7 @@
@click.stop.prevent="onClick($event, index)"
>
<v-layout v-if="photo.Type === 'live'" class="live-player">
<video :key="photo.ID" width="224" height="224" autoplay loop muted playsinline>
<video :key="photo.ID" width="224" height="224" preload="none" :poster="photo.thumbnailUrl('tile_224')" autoplay loop muted playsinline>
<source :src="photo.videoUrl()" type="video/mp4">
</video>
</v-layout>