]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/video_top.tpl
Merge pull request #12200 from annando/ignore-view
[friendica.git] / view / templates / video_top.tpl
index 132b89807d540c2fb4ef99a2809e32df01c6cb49..3f9d5886a5595f6227fda27c79c3c09e26159acf 100644 (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 }}