[ticket/14771] Set preload to metadata to display length of audio

PHPBB3-14771
This commit is contained in:
Marc Alexander 2021-07-01 20:53:20 +02:00
parent cf6d6d3445
commit a72ce76fad
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -35,7 +35,7 @@
{% if _file.COMMENT %}<dd><em>{{ _file.COMMENT }}</em></dd>{% endif %} {% if _file.COMMENT %}<dd><em>{{ _file.COMMENT }}</em></dd>{% endif %}
<dd>{{ _file.DOWNLOAD_NAME }} ({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }}</dd> <dd>{{ _file.DOWNLOAD_NAME }} ({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }}</dd>
<dd> <dd>
<audio class="file-audio-controls" controls="controls" preload="none"> <audio class="file-audio-controls" controls="controls" preload="metadata">
<source src="{{ _file.U_DOWNLOAD_LINK }}" type="{{ _file.MIMETYPE }}"> <source src="{{ _file.U_DOWNLOAD_LINK }}" type="{{ _file.MIMETYPE }}">
</audio> </audio>
</dd> </dd>