{%- capture section_settings -%}
{
"videoType": {{ section.settings.video_url.type | json }},
"videoId": {{ section.settings.video_url.id | json }},
"requestHost": {{ request.host | json }}
}
{%- endcapture -%}
{% schema %}
{
"name": "Background video Pages",
"settings": [
{
"type": "paragraph",
"content": "Background videos are automatically muted to allow autoplay on mobile. If you require audio, use the \"Featured Video\" section."
},
{
"type": "select",
"id": "section_size",
"label": "Section size",
"options": [
{
"value": "small",
"label": "Small"
},
{
"value": "normal",
"label": "Normal"
},
{
"value": "large",
"label": "Large"
}
],
"default": "large"
},
{
"type": "video_url",
"accept": ["youtube", "vimeo"],
"id": "video_url",
"label": "Video URL",
"default": "https://www.youtube.com/watch?v=aAjq1DJP_VA"
}
],
"presets": [
{
"category": "Video",
"name": "Background Video Pages",
"settings": {}
}
]
}
{% endschema %}