jex's profile picture

Published by

published

Category: Web, HTML, Tech

how to ACTUALLY loop music on your profile!

I noticed that the embed code everyone uses doesn't loop songs for me even though it's supposed to. I'm pretty sure it's because YouTube embed doesn't like to loop standalone videos -- but it does work for playlists! All you have to do is "create" a playlist using the embed code, like this:

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

</iframe>



So mine looks like this:

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

</iframe>


If it doesn't work, try changing the word playlist to list. Note this only works for playing one song on loop, not playing an actual playlist... I haven't been able to get a playlist with multiple songs to even autoplay properly yet, let alone have it loop itself lol

Not sure if anyone has already done this, but I haven't seen it so I made this post anyway :P


Happy coding! ^__^


158 Kudos

Comments

Displaying 20 of 58 comments ( View all | Add Comment )

binrin.xoxo

binrin.xoxo's profile picture

using tysm <3


Report Comment

Francisco❀

Francisco❀'s profile picture

using :3


Report Comment

rupt !!

rupt !!'s profile picture

using this :0 thanks so much


Report Comment

RA1NY_DAYZ

RA1NY_DAYZ's profile picture

its not working for me :((


Report Comment

RenCringe

RenCringe's profile picture

works perfectly tysm for posting ^_^!!


Report Comment

Ari ✩°。 ⋆⸜ 🎧✮

Ari ✩°。 ⋆⸜ 🎧✮'s profile picture

Using <3


Report Comment

Ari ✩°。 ⋆⸜ 🎧✮

Ari ✩°。 ⋆⸜ 🎧✮'s profile picture

Using <3


Report Comment

xin ᡣ𐭩

xin ᡣ𐭩's profile picture

thank u so much !!!


Report Comment

Emeri

Emeri's profile picture

Using!! Btw if this manages to break any other code on ur profile (it managed to break the vhs overlay layout i used?) just put the code in a different profile section and it'll work!!


Report Comment

𝙵𝚊𝚕𝚕𝙿𝚛𝚎𝚜𝚎𝚗𝚝ᶻ 𝗓 ᶻ

𝙵𝚊𝚕𝚕𝙿𝚛𝚎𝚜𝚎𝚗𝚝ᶻ 𝗓 ᶻ's profile picture

Thank you


Report Comment

MCi

MCi's profile picture

thank u~ ヾ(*'▽'*)


Report Comment

b0ringg

b0ringg's profile picture

i actually love you so much thank you


Report Comment

angelwingsxx

angelwingsxx's profile picture

I love you for making this


Report Comment

mw-008e

mw-008e's profile picture

IT WORKED FUCK YEAH


Report Comment

ARI [DO NOT BEND]

ARI [DO NOT BEND]'s profile picture

YAY THANK YOU!! BEST TUT


Report Comment

Scarleth:P

Scarleth:P's profile picture

TY so much!o(≧o≦)o it work!!


Report Comment

kat

kat's profile picture

sick!! I was trying to do this myself and it wasn't working well xD thank you!!


Report Comment

Jonas

Jonas's profile picture

YOU ARE SO HELPFUL!!!


Report Comment

Zopandrel

Zopandrel's profile picture

This is so useful


Report Comment

box

box's profile picture

yay ty!! it worked for me :))


Report Comment