Make Youtube link loop

Hello all!

I am trying to add a Youtube link to my website that will autoplay when in view and loop endlessly. I am having a bit of a hard time understanding how to change the code in order to do that.

This is an example of the code I got from the youtube video:

<iframe width="560" height="315" src="https://www.youtube.com/embed/F-Nyr18ASbw?controls=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Will appreciate any help!

A quick Google search says… add autoplay=1 to make it loop. Guessing it means add this after ‘autoplay;’ in the embed code.

1 Like

Another option is to use One Line Player: https://onelineplayer.com/

You will need to host the video on Vimeo, Dropbox, or Google Drive, but it’s super crisp and has a lot of visual customization that’s optimal for on-brand video embedding.

1 Like

Wow these are really helpful!! Thank you so much Esteban and seetravers

This is great but it doesn’t seem to allow for multiple on the same page to auto play and loop, if there a fix for this