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
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024