correctly use video elements

This commit is contained in:
Sebastian Hugentobler 2024-01-08 11:11:21 +01:00
parent 951cd9042f
commit b5f6a7e5b7
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
1 changed files with 4 additions and 1 deletions

View File

@ -6,5 +6,8 @@ from <a href="{{ page_url }}">page {{ page }}</a><br />
(url) %}
<img src="{{ url }}" /><br />
{% when Media::Video with (url) %}
<video src="{{ url }}" /><br />
<video controls>
<source src="{{ url }}" type="video/mp4" />
</video>
<br />
{% endmatch %} {% endfor %}