I'm using the ride theme from shopify (I know I know) and see my video in an index.json file:
"video_url": "https:\/\/www.youtube.com\/watch?v=KlxiEKrhWIQ",
I'd like to have it start playing as soon as someone lands on the page.
I also see a section that has the follow iframe:
<template>
{%- if section.settings.video_url.type == 'youtube' -%}
<iframe src="https://www.youtube.com/embed/{{ section.settings.video_url.id }}?enablejsapi=1" class="js-youtube" allow="autoplay; encrypted-media" allowfullscreen title="{{ section.settings.description | escape }}"></iframe>
{%- else -%}
<iframe src="https://player.vimeo.com/video/{{ section.settings.video_url.id }}" class="js-vimeo" allow="autoplay; encrypted-media" allowfullscreen title="{{ section.settings.description | escape }}"></iframe>
{%- endif -%}
</template>
Would appreciate any help. I tried adding ?autoplay=1 after the ID and before ?enablejsapi=1 but it didn't work
Thanks