I was wondering how you can delay the autoplay of a YouTube video until the videoplayer is actually in view? Now it plays (muted) on page load, which means that by the time the visitor has scrolled down, the video is already 50% underway.
I tried it with a slide-in animation on scroll but that does not appear to be the way. I also tried Googling it, but unfortunately no luck this time.
Since April 2018, Google made some changes to the Youtube Autoplay Policy. You not only need to add the autoplay=1 as a query param, but also add allow=‘autoplay’ as an iframe’s attribute