So, recently I have been asked how I got music to play on my page!
So here:
<iframe width="1" height="1" src="https://www.youtube.com/embed/######?&;amp;;autoplay=1&;loop=1" title="Youtube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope;picture-in-picture" allowfullscreen=""></iframe>
~~~~~~~~~~~~~~~~~~~~
copy and paste that! Just remove the hashtags and paste the numbers and letters from the last part of a YouTube link!!
(Don't remove the question mark!!)
For example:
<iframe width="1" height="1" src="https://www.youtube.com/embed/g7A9DWiAwbE?&;amp;;autoplay=1&;loop=1" title="Youtube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope;picture-in-picture" allowfullscreen=""></iframe>
~~~~~~~~~~~~~~~~~~~~~
UPDATE
I'm sorry, my code no longer works.
Check out Vidal's blog for an updated version.
Check out Vidal's blog for an updated version.
https://blog.spacehey.com/entry?id=97599
(thank you! :))
I hope I could help! :)
Comments
Displaying 20 of 272 comments ( View all | Add Comment )
check my blog
Check out my blog for an updated fix for auto play!
https://blog.spacehey.com/entry?id=97599
Report Comment
it works!! thank you so much!!
by chey♡; ; Report
omfg it actually works if u want proof check my page!
by rye <3; ; Report
mine doesn't work, like it can't autoplay. idk what im doing wrong, i checked all my codes and it doesnt seem to be effecting it. im a noob at coding so idk
by Z; ; Report
John Smith Must Die
use ing
Report Comment
How did you get it to work ? I did exactly what they said but its not working.
by 𓆩Brooke𓆪; ; Report
Cucurucho
You're a legend for this, all the code that you usually find for this is outdated but yours still works!
Report Comment
nik-at-nite
you are an amazing human being thank you so much
Report Comment
sjclown
omfg u deserve a fat kiss fr i have been messing with codes for the last 30 mins and that all i had to do (ToT)
Report Comment
Ninachan_o3o
THANK YOUUUUUU !!!
Report Comment
:c
tysmmmmmmmmmmm ToT <3333
Report Comment
SAERIM
does anyone know how to make the volume softer because i keep getting jumpscared
Report Comment
If u discovered pls tell me
by Vincente the clown; ; Report
Gor3_org
OMG thank you
Report Comment
Cx.Alexia
it doesn't work :(
Report Comment
doesnt work for me either
by Jackie; ; Report
it didn't work either but I have seen ppl put music on their page.
by halley; ; Report
binnie
it doesn't work to me :
Report Comment
TheKookie
Is there a way to make this work with Spotify? I think I saw a profile with a full Spotify Playlist and I'd like to know if something similar works.
Report Comment
i haven't tried it but i heard you can paste the spotify embed code
by mS p41nT!!; ; Report
\(ϋ)/♩
where do u copy and paste it??
Report Comment
you can copy and paste it anywhere like ur about me, general, etc.
by drknflx; ; Report
Jeremy N.
Even if someone commented this already, I use my spotify. I just created a specific playlist. Then I right clicked the playlist name, copy code, then paste where you want it to show.
Report Comment
ᅠ
For anyone who is wondering.
They have removed auto-play
It is not broken. They just took it off in your about page
Report Comment
year ago but wtf why
by iAmThatKidYouKnowWhatiMean; ; Report
Lia Ballester
does it work for any of you guys? ^^
Report Comment
no :( they removed auto play
by bullet; ; Report
⛈️Lissa
dang, I hope the auto play for this gets fixed, that was my favorite thing.
Report Comment
antónia <3
this was the highlight of my page rip :(
Report Comment
𝓛𝓮𝔁𝓲
Was working before now all of a sudden it doesnt :(
Report Comment
Klaus Gottberg
For now I'd just try using soundcloud and putting in something that was originally on YouTube via upload to soundcloud. Embeds require permission when someone goes into your page. Make a width 300 by height 100 player, it's compact and does a similar function until they enable the audio tag again if it's planned to keep the audio tag on the site.
Report Comment
Compact and make it scrollable is what I did for now.
by Klaus Gottberg; ; Report
its more of the issue that autoplay has stopped for all embedded players.
by check my blog; ; Report