Improve media player behavior for AV1 article

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2022-11-27 08:05:02 +01:00
parent aae35d769a
commit 9e9cebcbf3
@@ -308,17 +308,16 @@ videos:
{% capture content %}Anyway, with the wall of text out of the way, heres videos:{% endcapture %}{% include blocks/paragraph.liquid content=content %} {% capture content %}Anyway, with the wall of text out of the way, heres videos:{% endcapture %}{% include blocks/paragraph.liquid content=content %}
{% for group in page.videos %} {% for video in page.videos %}
{% include blocks/heading.liquid level=2 content=group.name %} {% capture capture_video %}
{% assign column_count=group.entries | size %} {% capture video_sources %}
{% capture columns %} {% for encoder in video.entries %}
{% for group2 in group.entries %} {% for video in encoder.entries %}
{% capture column %} <source src="{{ video.url | absolute_url }}" title="{{ encoder.name }} / {{ video.caption }}">
{% include blocks/heading.liquid level=3 content=group2.name %}
{% for group3 in group2.entries %}
{% include blocks/media.liquid type="video" url=group3.url caption=group3.caption poster=group.poster muted=true preload="none" %}
{% endfor %} {% endfor %}
{% endcapture %}{% include blocks/column.liquid content=column %}
{% endfor %} {% endfor %}
{% endcapture %}{% include blocks/columns.liquid content=columns %} {% endcapture %}
{% include blocks/media.liquid type="video" caption=caption poster=video.poster preload="metadata" player=true content=video_sources %}
{% endcapture %}
{% include blocks/details.liquid title=video.name content=capture_video level=1 open=true %}
{% endfor %} {% endfor %}