Wookie's profile picture

Published by

published
updated

Category: Web, HTML, Tech

How I got music to play on my page!! (UPDATE)

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.

https://blog.spacehey.com/entry?id=97599

(thank you! :))

I hope I could help! :)


759 Kudos

Comments

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

check my blog

check my blog's profile picture
Pinned

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 cam; ; Report

nik-at-nite

nik-at-nite's profile picture

you are an amazing human being thank you so much


Report Comment

sjclown

sjclown's profile picture

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

Ninachan_o3o's profile picture

THANK YOUUUUUU !!!


Report Comment

:c

:c's profile picture

tysmmmmmmmmmmm ToT <3333


Report Comment

SAERIM

SAERIM's profile picture

does anyone know how to make the volume softer because i keep getting jumpscared


Report Comment



If u discovered pls tell me

by Snuggles the clown; ; Report

Gor3_org

Gor3_org's profile picture

OMG thank you


Report Comment

Cx.Alexia

Cx.Alexia's profile picture

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

binnie's profile picture

it doesn't work to me :


Report Comment

TheKookie

TheKookie's profile picture

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

\⁠(⁠ϋ⁠)⁠/⁠♩

\⁠(⁠ϋ⁠)⁠/⁠♩'s profile picture

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.

Jeremy N.'s profile picture

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

ᅠ's profile picture

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

Lia Ballester's profile picture

does it work for any of you guys? ^^


Report Comment



no :( they removed auto play

by IHEARTDDC; ; Report

⛈️Lissa

⛈️Lissa's profile picture

dang, I hope the auto play for this gets fixed, that was my favorite thing.


Report Comment

antónia <3

antónia <3's profile picture

this was the highlight of my page rip :(


Report Comment

𝓛𝓮𝔁𝓲

𝓛𝓮𝔁𝓲's profile picture

Was working before now all of a sudden it doesnt :(


Report Comment

Klaus Gottberg

Klaus Gottberg's profile picture

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

Extended Blundering

Extended Blundering's profile picture

S.O.S. autoplay! R.I.P music. much sadness, my profile lost ten cool points


Report Comment



Same here :/

by John-Richard Javier; ; Report

AUTUMИ</3

AUTUMИ</3's profile picture

it was working at first but it ramdomly stopped ;-;


Report Comment



Yeah, same for me

by PetiteObama; ; Report