IcyTea's profile picture

Published by

published
updated

Category: Web, HTML, Tech

How to Autoplay Your Entire YouTube Music Playlist


How It Works (YouTube Autoplay Playlist)



Do you want to use YouTube Autoplay on your profile with more than just one song? Are you a Music Artist that has a YouTube playlist to feature not just one, but all available songs in your music profile?



This code should help with profiles that have an array of music tastes, but may constantly change music throughout the days they spent on SpaceHey. I was trying to solve this for about an hour and every layout that's under the autoplay category also does not contain a playlist and only single links.



My Example Code:


<style>

<iframe width="400" height="140" src="https://www.youtube.com/embed/KEkrn_nXnCA?list=PLc80y6lY-YxdzLSH-ZaCWsQrdK0JfvZWU&loop=1&autoplay=1&controls=1&start=0&playlist=KEkrn_nXnCA?list=PLc80y6lY-YxdzLSH-ZaCWsQrdK0JfvZWU&”title=" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="””"></iframe>


</style>


Edit Your Own:


<style>

<iframe width="400" height="140" src="https://www.youtube.com/embed/VIDEOIDHERE?list=PLAYLISTIDHERE&loop=1&autoplay=1&controls=1&start=0&playlist=VIDEOIDHERE?list=PLAYLISTIDHERE&”title=" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="””"></iframe>


</style>


How to Edit:


If you navigate to your YouTube and select a playlist, you'll get a URL of the first video's embed link and the embed link to your playlist.

It will normally look like this:


https://www.youtube.com/watch?v=KEkrn_nXnCA&list=PLc80y6lY-YxdzLSH-ZaCWsQrdK0JfvZWU


KEkrn_nXnCA --- is the first video of the playlist (replace at VIDEOIDHERE)

PLc80y6lY-YxdzLSH-ZaCWsQrdK0JfvZWU --- is the playlist itself (replace PLAYLISTIDHERE)


Remember, if you change your first video in the queue, make sure to replace the old video ID twice to ensure stability.




Note: You can change width and height to "0" if you wish for it to be hidden, you can also place it anywhere (such as interests).


Make autoplay layouts that have a playlist instead of single songs, give the people their dedicated MCR album playlist requests!!


Thank you for visiting this blog post!


Also, comment if you're stuck on anything or send kudos if you appreciate the blog!

-IcyTea



8 Kudos

Comments

Displaying 2 of 2 comments ( View all | Add Comment )

yottaFlare

yottaFlare's profile picture

Hi - no matter what code I use, yours or otherwise, autoplay won't start. I can manually start any embedded media but no autoplay. Do you know what kinds of things would interfere with autoplay that I should look for in the rest of my layout? Thank you! And thank you for the post!


Report Comment

Veronika_Vampire

Veronika_Vampire's profile picture

thx for the code! One question tho, how do I know where the video and playlist id is?


Report Comment



If you navigate to your YouTube and select a playlist, you'll get a URL of the first video's embed link and the embed link to your playlist.

It will normally look like this:


https://www.youtube.com/watch?v=KEkrn_nXnCA&list=PLc80y6lY-YxdzLSH-ZaCWsQrdK0JfvZWU


KEkrn_nXnCA --- is the first video of the playlist (replace at VIDEOIDHERE)

PLc80y6lY-YxdzLSH-ZaCWsQrdK0JfvZWU --- is the playlist itself (replace PLAYLISTIDHERE)


Just remember you'll have to do that twice, but it should work if you follow that guideline.

If you want to make a different video be the first in queue, just remember to edit the location of the video ID twice.


Thank you for responding!

by IcyTea ; ; Report

ahh ok thx for the explanation

by Veronika_Vampire; ; Report

No problem, I'll include it in the original blog post.

by IcyTea ; ; Report

uhh.. okay, so I put in the code (wo the style part cause the player wouldn't show up on my profile) and it hid all my blinkies, stamps and buttons underneath it for some reason ://

by Veronika_Vampire; ; Report