feat: disable video controls and loop playback

This commit is contained in:
Ayo Ayco 2024-04-24 12:52:49 +02:00
parent d4ab339173
commit f218e205e7

View file

@ -44,7 +44,7 @@
& * { & * {
margin-top: 1em; margin-top: 1em;
} }
& img { & img, & video {
border-radius: 5px; border-radius: 5px;
max-width: 100%; max-width: 100%;
height: 300px; height: 300px;
@ -72,7 +72,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 controls autoplay> <video autoplay 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>
@ -93,7 +93,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 controls autoplay> <video autoplay 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>