[PLUGIN][VideoEncoder] Some videos don't have images (video stream), only audio, handle that

This commit is contained in:
2021-12-03 03:13:28 +00:00
parent 4501b7e85e
commit 044649c745
4 changed files with 42 additions and 30 deletions

View File

@@ -1,3 +1,4 @@
{% if attachment.getFilename() is not null %}
<div>
<figure>
<audio class="u-audio" src="{{ attachment.getUrl() }}" controls>
@@ -11,3 +12,6 @@
</figcaption>
</figure>
</div>
{% else %}
{# Not stored locally. #}
{% endif %}