added "controls" to audio and video tags

This commit is contained in:
mb 2022-06-17 12:58:36 +02:00
parent 9e49595755
commit ba2654cc8a

View File

@ -21,9 +21,9 @@
{% elif 'application' in db[num]['media']['type'] %} {% elif 'application' in db[num]['media']['type'] %}
<iframe src="{{ db[num]['media']['path'] }}" loading="lazy"></iframe> <iframe src="{{ db[num]['media']['path'] }}" loading="lazy"></iframe>
{% elif 'audio' in db[num]['media']['type'] %} {% elif 'audio' in db[num]['media']['type'] %}
<audio src="{{ db[num]['media']['path'] }}" preload="none"></audio> <audio src="{{ db[num]['media']['path'] }}" preload="none" controls></audio>
{% elif 'video' in db[num]['media']['type'] %} {% elif 'video' in db[num]['media']['type'] %}
<video src="{{ db[num]['media']['path'] }}" preload="none"></video> <video src="{{ db[num]['media']['path'] }}" preload="none" controls></video>
{% endif %} {% endif %}
</p> </p>
{% else %} {% else %}