I am embedding a YouTube video without playback controls, or video title, but I want it to autoplay and loop. Everything works except the loop. What am I doing wrong?
<div class='embed-container'><iframe src="https://www.youtube.com/embed/Yo19ZhO7CAc?autoplay=1&loop=1&cc_load_policy=1rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe></div>
You shoud add playlist=VIDEO_ID at your src
<div class='embed-container'>
<iframe
src="https://www.youtube.com/embed/Yo19ZhO7CAc?autoplay=1&loop=1&cc_load_policy=1rel=0&controls=0&showinfo=0&playlist=Yo19ZhO7CAc"
frameborder="0"
allowfullscreen>
</iframe>
</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With