Improve media player behavior for AV1 article
This commit is contained in:
@@ -308,17 +308,16 @@ videos:
|
||||
|
||||
{% capture content %}Anyway, with the wall of text out of the way, here’s videos:{% endcapture %}{% include blocks/paragraph.liquid content=content %}
|
||||
|
||||
{% for group in page.videos %}
|
||||
{% include blocks/heading.liquid level=2 content=group.name %}
|
||||
{% assign column_count=group.entries | size %}
|
||||
{% capture columns %}
|
||||
{% for group2 in group.entries %}
|
||||
{% capture column %}
|
||||
{% 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 %}
|
||||
{% endcapture %}{% include blocks/column.liquid content=column %}
|
||||
{% endfor %}
|
||||
{% endcapture %}{% include blocks/columns.liquid content=columns %}
|
||||
{% for video in page.videos %}
|
||||
{% capture capture_video %}
|
||||
{% capture video_sources %}
|
||||
{% for encoder in video.entries %}
|
||||
{% for video in encoder.entries %}
|
||||
<source src="{{ video.url | absolute_url }}" title="{{ encoder.name }} / {{ video.caption }}">
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% 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 %}
|
||||
|
||||
Reference in New Issue
Block a user