by @kodeazy
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 tosrc
tag - here the value of
playlist
attribute isId
of the video’surl
which istQ0yjYUFKAE
-
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: