1
0
Fork 0

Preview for Videos and images / Video resolution selection

This commit is contained in:
Michael 2021-04-28 19:05:46 +00:00
commit 3d64c3031b
9 changed files with 62 additions and 35 deletions

View file

@ -1,4 +1,4 @@
<audio src="{{$audio.src}}" controls>
<a href="{{$audio.src}}">{{$audio.src}}</a>
<a href="{{$audio.src}}">{{$audio.name}}</a>
</audio>
<br>

View file

@ -1,2 +1,6 @@
{{if $image.preview}}
<a href="{{$image.attachment.url}}"><img src="{{$image.preview}}" alt="{{$image.attachment.description}}" title="{{$image.attachment.description}}"></a>
{{else}}
<img src="{{$image.src}}" alt="{{$image.attachment.description}}" title="{{$image.attachment.description}}">
{{/if}}
<br>

View file

@ -1,7 +1,7 @@
<div class="video-top-wrapper lframe" id="video-top-wrapper-{{$video.id}}">
{{* set preloading to none to lessen the load on the server *}}
<video controls preload="none" data-setup="" width="100%" height="auto">
<source src="{{$video.src}}" type="{{$video.mime}}" />
<video src="{{$video.src}}" controls {{if $video.preview}}preload="none" poster="{{$video.preview}}" {else}preload="metadata" {{/if}}width="100%" height="auto">
<a href="{{$video.src}}">{{$video.name}}</a>
</video>
{{if $delete_url }}