by @kodeazy

iframe unable to loop using loop attribute

Home » html » iframe unable to loop using loop attribute
  • iframe loop=1 attribute is not letting video to loop again after completion of video
  • My iframe tag for video is in below format
<iframe  id="loop" type="text/html" width="440" height="350" src="https://www.youtube.com/embed/tQ0yjYUFKAE?&autoplay=0&rel=0&showinfo=0&color=white&iv_load_policy=3&loop=1" frameborder="0" allowfullscreen>

output:

  • Here I added playlist attribute to src tag
  • here the value of playlist attribute is Id of the video’s url which is tQ0yjYUFKAE
  • x It is in between /embed/ and ? of the url

    <iframe  id="loop" type="text/html" width="440" height="350" src="https://www.youtube.com/embed/tQ0yjYUFKAE?&autoplay=0&rel=0&showinfo=0&color=white&iv_load_policy=3&loop=1" frameborder="0" allowfullscreen>

    output: