Streaming live at 10am (PST)

Delay YouTube autoplay until the video is in view

Hi!

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.


Here is my public share link: LINK
(how to access public share link)

as a very quick of the bat comment, what happens if you hide it and display when in view?

Hey @LouisMSP, I’ve just had a very quick Google and found these two links which may be of use to you -

http://fofwebdesign.co.uk/template/_testing/scroll-in-view/defer-youtube-load.htm

And here is YouTube’s official docs on the YouTube embed and all the parameters it accepts - https://developers.google.com/youtube/player_parameters