feat: enable video controls for gif
This commit is contained in:
parent
95f657094b
commit
5f4971f7c5
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue