feat: enable video controls for gif

This commit is contained in:
Ayo Ayco 2024-04-24 16:42:09 +02:00
parent 95f657094b
commit 5f4971f7c5

View file

@ -120,7 +120,7 @@
{% if media.type == 'image'%} {% if media.type == 'image'%}
<img src="{{media.url}}" /> <img src="{{media.url}}" />
{% elif media.type == 'gifv' %} {% elif media.type == 'gifv' %}
<video autoplay="autoplay" muted loop> <video controls autoplay="autoplay" muted loop>
<source src="{{media.url}}" type="video/mp4"> <source src="{{media.url}}" type="video/mp4">
Your browser does not support the video tag. Your browser does not support the video tag.
</video> </video>
@ -147,7 +147,7 @@
{% if media.type == 'image'%} {% if media.type == 'image'%}
<img src="{{media.url}}" /> <img src="{{media.url}}" />
{% elif media.type == 'gifv' %} {% elif media.type == 'gifv' %}
<video autoplay="autoplay" muted loop> <video controls autoplay="autoplay" muted loop>
<source src="{{media.url}}" type="video/mp4"> <source src="{{media.url}}" type="video/mp4">
Your browser does not support the video tag. Your browser does not support the video tag.
</video> </video>