pull/1/head
Jan Umbach 2024-05-29 22:38:50 +02:00
parent f340456002
commit 94a34165fb
2 changed files with 3 additions and 7 deletions

View File

@ -135,8 +135,7 @@
{% if is_shx_video %} {% if is_shx_video %}
{%render "shx-video", {%render "shx-video",
video_src: media.sources[0].url, media: media%}
thumbnail_src: media.preview_image | image_url: width: 1946%}
{% else %} {% else %}

View File

@ -1,12 +1,9 @@
{% assign video_src = video_src | default: '' %} {% assign media = media %}
{% assign video_src = thumbnail_src | default: '' %}
{% if video_src != 'none' %} {% if video_src != 'none' %}
<div class="shx-video"> <div class="shx-video">
<div class="shx-video__wrapper"> <div class="shx-video__wrapper">
<video class="shx-video__video" controls> {% media | media_tag: image_size: "2048x", autoplay: true, loop: loop, controls: true, preload: "none" %}
<source src="{{ video_src }}" type="video/mp4">
Your browser does not support the video tag.
</div> </div>
</div> </div>
{% endif %} {% endif %}