[AudioEncoder] Introduce basic audio plugin to provide an attachment template and duration metadata for audio mimetype

This commit is contained in:
2021-10-24 22:11:07 +01:00
parent 364c14ef2c
commit 0407ac38cf
4 changed files with 145 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<div>
<figure>
<audio class="u-audio" src="{{ attachment.getUrl() }}" controls>
</audio>
<figcaption><a
href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getBestTitle(note) }}</a>
</figcaption>
</figure>
</div>