How To Set An Embedded Youtube Video in Loop?

Forums HTMLHow To Set An Embedded Youtube Video in Loop?
Staff asked 3 years ago

How to set an embedded Youtube Video in Loop?

Answers (1)

Add Answer
Mitali Kukadiya Marked As Accepted
Staff answered 3 years ago

If you want to video in the loop then the parameters “?loop=1&playlist=GRonxog5mbw” have to be passed in iframe src after ”?”.
I have passed the youtube id in playlist parameters.

Example:

<iframe width="560" height="315" src="https://www.youtube.com/embed/q5jEY92Amgw?loop=1&playlist=q5jEY92Amgw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Subscribe

Select Categories