Preview for Videos and images / Video resolution selection
This commit is contained in:
parent
909e029168
commit
3d64c3031b
9 changed files with 62 additions and 35 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue