I am trying to embed a YouTube video with loop mode on, and to do so I have to set the playlist parameter otherwise it won't work:
The problem is when I do so i get a playlist with 2 videos on it, the same video appearing twice, which produces a very bad visual effect since i want one video to loop endlessly.
Any suggestions on how to do so? Thanks
Here's my code:
<iframe width="600" height="338"
src="https://www.youtube.com/embed/VIDEO_ID/?playlist=VIDEO_ID&autoplay=1&loop=1&rel=0&showinfo=0&color=white"
frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>