ARTICLE AD BOX
On this page, there is an embedded YouTube video produced by code:
<iframe width="560" height="315" src="https://www.youtube.com/embed/1u17pS4_tw0?si=V06Ss5eD89_PBShj&controls=0&autoplay=1&rel=0&modestbranding=1&mute=1&loop=1" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>Note the &loop=1 parameter.
However the video on the page does not loop.
49.2k13 gold badges98 silver badges165 bronze badges
1,86515 gold badges71 silver badges136 bronze badges
1
https://developers.google.com/youtube/player_parameters#loop:
Note: This parameter has limited support in IFrame embeds. To loop a single video, set the loop parameter value to 1 and set the playlist parameter value to the same video ID already specified in the Player API URL:
https://www.youtube.com/embed/VIDEO_ID?playlist=VIDEO_ID&loop=1
Just tested it, appears to work as advertised.
97.7k15 gold badges100 silver badges172 bronze badges
I believe you're missing the playlist parameter, which needs to be set to the video id, as explained in @C3roe's answer.
Note the added &playlist=1u17pS4_tw0, I've just tested it and it should work! :)
<iframe width="560" height="315" src="https://www.youtube.com/embed/1u17pS4_tw0?si=V06Ss5eD89_PBShj&controls=0&autoplay=1&rel=0&modestbranding=1&mute=1&loop=1&playlist=1u17pS4_tw0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>2623 silver badges12 bronze badges
6 Comments
Oh, how strange! The iframe url shows up with the id 1u17pS4_tw0 for me. I tried out your url too and it seems to point to the same video. Thanks for the comment though — it helped me notice a mistake in my answer! (I changed controls to 1 for testing but accidentally flipped autoplay back instead lol)
2025-11-27T17:47:32.947Z+00:00
Explore related questions
See similar questions with these tags.

