Video Lightbox Youtube Autoplay

Hi, I have tried to get the YouTube video to autoplay. But it just does not do it. I have set autoplay=1

Here’s my code:

[image class=“videos_Story” src=“http://happysoulhungrymind.com/HWP/wp-content/uploads/2019/11/Why_SpiritualityBook_AsStory_Cover_2_w600.jpg” link=“true” href="//www.youtube.com/embed/TTzYFqzp7jY?rel=0&autoplay=1" lightbox_video=“true”]

[lightbox selector=".videos_Story"]

Hi Ravi,

Thanks for reaching out.

I can confirm it and it seems to be happening on other videos, probably related to browser restriction. An example here https://github.com/uikit/uikit/issues/3783, and https://forum.webflow.com/t/autoplay-video-in-lightbox-not-working-in-chrome/59933/7, there are many similar issues and it’s due to new browser policies.

Example, try adding mute=1 to your youtube URL and it will autoplay, but muted (eg. //www.youtube.com/embed/TTzYFqzp7jY?rel=0&autoplay=1&mute=1).

The policy is here https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

Thanks!

Thanks for the information!

You’re welcome!
We’re glad @Rad were able to help you out.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.