Liquid, JavaScript, themes, sales channels
Hi,
I am currently working on a theme where I would like to have the ability to add a video that I can set in the theme settings.
As of now I am using the following:
...
{% schema %}
{
...,
"blocks": [
{
...,
{
"type": "video_url",
"accept": ["vimeo", "youtube"],
"id": "video_url",
"label": "Video URL",
"default": "https://www.youtube.com/watch?v=_9VUPq3SxOc"
},
...
],
...
}
{% endschema %}
Unfortunately, this method only accept vimeo or youtube videos but I also would like to add videos from the shopify cdn.
Is there any way to enhance this to accept any video url ? My code is able to handle any video.
I couldn't find anything else than video_url and I would like to not use the simple "url" setting.
had the same issue, but the simple "url" setting works totally fine for me.
Hello,
I am also interested in this.
Has anyone found any way to include other video sources ?
Shopify now added video picker in the settings.
https://shopify.dev/themes/architecture/settings/input-settings#video
This literally saved my life, thank you
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022