Sammie's profile picture

Layout published by Sammie

published
updated

Add to Favorites

View Layouts

View Profile

Report Layout

Background Music Player (Autoplay & Loop)

Tags: music, autoplay, loop, autoplayer

Description:

I couldn't find a code that looped, so I spent some time trying to figure it out and finally got it to work. Just replace the two "VIDEOID"s with the ID of the YouTube song/video you want. As far as I can tell, this works. When you save the code and click "view your profile" it might not work right away. Click on the home button and then visit your page again, and it should play. Also, it doesn't work on a mobile browser unless you're in desktop mode.

Update: Turns out someone else had figured it out before me, and I didn't notice, so I decided to put a link to their code. link

Update2: Sorry, I haven't been on much to respond to comments or anything. Anyway, there is autoplay music on this page, so if you can hear the music, then the code should still be working. Also, I think it depends on what browser you're using, as some browsers will possibly need a different code. If your audio stops working, maybe check to see if the video is still up on YouTube. It should work on the mobile app as well. Here's an example of how to do the code for those who are still confused:

Get the YouTube video link of the song/audio you want. (Example: https://www.youtube.com/watch?v=0pbaa-3fvn8)

Where it says v= is the video ID of that song. (Example: 0pbaa-3fvn8)

Copy the video ID and replace the two "VIDEOID" places inside the code. (Example: src="https://www.youtube.com/embed/0pbaa-3fvn8?loop=1&autoplay=1&controls=0&start=0&playlist=0pbaa-3fvn8&")

Copy and paste this code into the "About me" section of your Profile to use it.

Caution: This Layout was not inspected by SpaceHey — use it at your own risk.