Matthew Trujillo's profile picture

Published by

published
updated

Category: Web, HTML, Tech

How to Autoplay music (with or without video)

<iframe width="1" height="1" src="EMBEDEDURL-HERE?&;autoplay=1&;loop=1" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>


1. Copy and paste the code above into your general section

2. Go to SoundCloud, YouTube or Spotify, find the song you want

3. Select share and copy the embedded URL (underlined)

3. Paste the embedded URL into the bold part of the code above

4. The code above is for hidden. To show the video, change the width and height from: 

<iframe width="1" height="1" 

To

<iframe width="200" height="200" 



3 Kudos

Comments

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