« Web, HTML, Tech Forum

How Can I Have Music Auto Play?

Posted by Klowny

posted

Forum: Web, HTML, Tech

I cant find anything on what the code is for music to start playing when someone opens your profile, so if anyone knows it that would be very awesome sauce!! :3


Report Topic

1 Reply

Reply by byte

posted

  1. find a youtube video of the song you love or wish to be autoplayed when your profile opens
  2. take the youtube link of that video and get the ID. here is an example: https://www.youtube.com/watch?v=BnkhBwzBqlQ (the highlighted part is the ID)
  3. copy & paste the ID in the code where it says [insert here] (remove it entirely including the brackets [] and replace it with the ID)
  4. insert the code with the ID and place it at the very bottom of your About Me page
  5. you're done

The Code:

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

</iframe>


Permalink Report Reply