friendica/view/templates/video_top.tpl

14 lines
618 B
Smarty
Raw Permalink Normal View History

<div class="video-top-wrapper lframe" id="video-top-wrapper-{{$video.id}}">
2013-05-11 20:40:09 +02:00
{{* set preloading to none to lessen the load on the server *}}
2024-03-05 22:25:00 +01:00
<video src="{{$video.src}}" controls {{if $video.preview}}preload="none" poster="{{$video.preview}}" {else}preload="metadata" {{/if}}width="{{$video.width}}" height="{{$video.height}}">
<a href="{{$video.src}}">{{$video.name}}</a>
</video>
2018-01-23 02:45:42 +01:00
{{if $delete_url }}
<form method="post" action="{{$delete_url}}">
2015-05-23 22:51:34 +02:00
<input type="submit" name="delete" value="X" class="video-delete"></input>
<input type="hidden" name="id" value="{{$video.id}}"></input>
2018-01-23 02:45:42 +01:00
</form>
{{/if}}
</div>