spee.ch/views/showLite.handlebars

11 lines
444 B
Handlebars
Raw Normal View History

2017-07-09 00:17:40 +02:00
<div id="asset-placeholder" data-filename="{{{fileInfo.fileName}}}">
{{#ifConditional fileInfo.fileType '===' 'video/mp4'}}
<video class="show-asset-lite" autoplay controls>
<source src="/api/streamFile/{{fileInfo.fileName}}">
{{!--fallback--}}
Your browser does not support the <code>video</code> element.
</video>
{{else}}
<img class="show-asset-lite" src="/api/streamFile/{{fileInfo.fileName}}" />
{{/ifConditional}}
</div>