<iframe style="opacity:0;position:absolute;pointer-events:none;" frameborder="no" src="https://www.youtube.com/embed/videoseries?list=[YOUR YOUTUBE PLAYLIST ID HERE];&autoplay=1" allowfullscreen=""></iframe></p>
🖥 Code Snippet: Autoplay Music
Edit Nov 27 2021: This should still work, even with the changes An made to how media works. If it doesn’t, make sure you’ve allowed YouTube access to you on SpaceHey, by going to someone’s page who has a video and allowing access to it.
OK, make a public or unlisted playlist on YouTube and load it with the music you want, then use this code. It is working! Thanks to subfuse for figuring this out! Your playlist can be as long as you'd like, and each song can be as long as you'd like, as far as I can tell.
Caveats: Ad blockers need to be completely off, or at least passing though YouTube and SpaceHey. (But we should be allowing ads on SpaceHey anyway just in case, to support An) In my testing, it works in Safari only when a user clicks on the browser anywhere within like the first second of the page loading. (I'm mulling over how to fix that.) Chrome it works better, Edge it works great. Firefox it may not work at all. It will definitely not work on mobile.
More caveats: YOUR WEB BROWSER NEEDS TO ALLOW AUDIO TO AUTOPLAY! If you go to my profile and don't hear music, then your browser is set to disallow autoplay!
IF YOU ARE ON SAFARI ON DESKTOP: Preferences ⇢ Websites ⇢ Auto-Play
IF YOU ARE ON CHROME ON DESKTOP: Privacy and Security ⇢ Site Settings ⇢ View Permissions and Date (Below your recent activity) ⇢ Spacehey.com ⇢ Scroll to "Sound" ⇢Click the drop down icon and hit "Allow"