27 lines
909 B
HTML
27 lines
909 B
HTML
{% if video.has_video %}
|
|
<div class="video-block {{ video.video_size_class }} {{ video.video_aspect_class }} fade-in">
|
|
<div class="video-block-inner glass-card">
|
|
{% if video.video_source == "upload" and video.video_file %}
|
|
<video
|
|
controls
|
|
playsinline
|
|
preload="metadata"
|
|
{% if video.video_poster %}poster="{{ video.video_poster.url }}"{% endif %}
|
|
title="{{ video.title|default:'Video' }}"
|
|
>
|
|
<source src="{{ video.video_file.url }}" />
|
|
</video>
|
|
{% elif video.youtube_embed_url %}
|
|
<iframe
|
|
src="{{ video.youtube_embed_url }}"
|
|
title="{{ video.title|default:'Video' }}"
|
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
allowfullscreen
|
|
loading="lazy"
|
|
referrerpolicy="strict-origin-when-cross-origin"
|
|
></iframe>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|