Hey @Luke,
Really weird, it works for me:
{
"type": "header",
"content": "Media"
},
{
"type": "select",
"id": "media_type",
"label": "Type",
"options": [
{
"value": "image",
"label": "Image"
},
{
"value": "video",
"label": "Video"
}
]
},
{
"type": "image_picker",
"id": "mobile_image",
"label": "Mobile",
"info": "Minimum width recommended: 768px",
"visible_if": "{{ section.settings.media_type == 'image' }}"
},
{
"type": "image_picker",
"id": "desktop_image",
"label": "Desktop",
"info": "Minimum width recommended: 1920px",
"visible_if": "{{ section.settings.media_type == 'image' }}"
},
{
"type": "video",
"id": "mobile_video",
"label": "Mobile",
"info": "Minimum width recommended: 768px",
"visible_if": "{{ section.settings.media_type == 'video' }}"
},
{
"type": "video",
"id": "desktop_video",
"label": "Desktop",
"info": "Minimum width recommended: 1920px",
"visible_if": "{{ section.settings.media_type == 'video' }}"
},
{
"type": "header",
"content": "Video settings",
"visible_if": "{{ section.settings.media_type == 'video' }}"
},
{
"type": "checkbox",
"id": "autoplay",
"label": "Autoplay",
"default": false,
"info": "Videos will be muted by default",
"visible_if": "{{ section.settings.media_type == 'video' }}"
},
{
"type": "checkbox",
"id": "loop",
"label": "Loop video",
"default": true,
"visible_if": "{{ section.settings.media_type == 'video' }}"
},
{
"type": "checkbox",
"id": "show_controls",
"label": "Show controls",
"default": false,
"visible_if": "{{ section.settings.media_type == 'video' }}"
},
{
"type": "checkbox",
"id": "show_play_pause",
"label": "Show play/pause button",
"default": true,
"visible_if": "{{ section.settings.media_type == 'video' }}"
},