When you want a video on your website to play infinite times

you need to adjust the code you get from youtube.

This is the embedded code you get from youtube

<iframe width="560" height="315" src="https://www.youtube.com/embed/pfGYsxpNJKc" frameborder="0" allowfullscreen></iframe>

this code you need to change into:

<iframe width="560" height="315" wmode="transparent" src="//www.youtube.com/embed/pfGYsxpNJKc?loop=1&playlist=pfGYsxpNJKc" frameborder="0" allowfullscreen></iframe>

And your video will play until you hit the stop button.



Join the Discussion
Write something…
Recent messages
lillakiara Premium
Great, had no idea this could be done :) thanks Loes!
Reply
Loes Premium
I didn't either this morning, until someone asked a simular question here:)
Reply
MarionBlack Premium
I like this Loes. Sending you a PM. ~Marion
Reply
Loes Premium
:))
Reply
islandcat7 Premium
Thanks.
Reply
Loes Premium
You're welcome Mark
Reply
jvranjes Premium
Loes I shall most likely not used this but this does not prevent me from appreciating it. Restless as usual. Jovo
Reply
Loes Premium
You never know:) Jovo
Reply
SQUIRRELL Premium
Thanks this is a handy thing to learn :O))
Reply
Loes Premium
You're welcome Dawn
Reply
Top