mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -08:00
video type attribute. fixes #176
This commit is contained in:
parent
3e086ed606
commit
d844a7816b
1 changed files with 4 additions and 4 deletions
|
@ -87,9 +87,9 @@
|
||||||
<p>
|
<p>
|
||||||
<video class="responsive-video" controls preload="{{ 'metadata' if low_bandwidth else 'auto' }}">
|
<video class="responsive-video" controls preload="{{ 'metadata' if low_bandwidth else 'auto' }}">
|
||||||
{% if post.url.endswith('.mp4') %}
|
{% if post.url.endswith('.mp4') %}
|
||||||
<source src="{{ post.url }}" media="video/mp4" />
|
<source src="{{ post.url }}" type="video/mp4" />
|
||||||
{% elif post.url.endswith('.webm') %}
|
{% elif post.url.endswith('.webm') %}
|
||||||
<source src="{{ post.url }}" media="video/webm" />
|
<source src="{{ post.url }}" type="video/webm" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</video></p>
|
</video></p>
|
||||||
{% elif post.url.startswith('https://streamable.com') %}
|
{% elif post.url.startswith('https://streamable.com') %}
|
||||||
|
@ -108,9 +108,9 @@
|
||||||
<p>
|
<p>
|
||||||
<video class="responsive-video" controls preload="{{ 'none' if low_bandwidth else 'auto' }}" {{ 'autoplay muted' if autoplay }}>
|
<video class="responsive-video" controls preload="{{ 'none' if low_bandwidth else 'auto' }}" {{ 'autoplay muted' if autoplay }}>
|
||||||
{% if post.url.endswith('.mp4') %}
|
{% if post.url.endswith('.mp4') %}
|
||||||
<source src="{{ post.url }}" media="video/mp4" />
|
<source src="{{ post.url }}" type="video/mp4" />
|
||||||
{% elif post.url.endswith('.webm') %}
|
{% elif post.url.endswith('.webm') %}
|
||||||
<source src="{{ post.url }}" media="video/webm" />
|
<source src="{{ post.url }}" type="video/webm" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</video></p>
|
</video></p>
|
||||||
{% elif post.url.startswith('https://streamable.com') %}
|
{% elif post.url.startswith('https://streamable.com') %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue