spee.ch/views/partials/asset.handlebars

13 lines
No EOL
438 B
Handlebars

<div class="panel">
<div id="asset-placeholder">
{{#ifConditional fileInfo.fileType '===' 'video/mp4'}}
<video class="show-asset" autoplay loop controls>
<source src="/api/streamFile/{{fileInfo.fileName}}">
{{!--fallback--}}
Your browser does not support the <code>video</code> element.
</video>
{{else}}
<img class="show-asset" src="/api/streamFile/{{fileInfo.fileName}}" />
{{/ifConditional}}
</div>
</div>