Hi All,
Recently I have had trouble having a responsive YouTube video which autoplays, loops and has no YouTube controls. I just thought I’d it with you just in case anyone else is struggling with the same issue.
Here is the code:
<iframe style="position: absolute; top: 0; left: 0;" src="https://www.youtube.com/embed/8HSr8BjcufM?autoplay=1&controls=0&loop=1&playlist=8HSr8BjcufM&showinfo=0" width="100%" height="100%" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
I then followed the tutorial here to make things responsive!
Something to be aware of…
You have to make a playlist within YouTube containing the video (this makes the looping possible)
Hope this helps!
M