Dr.42's profile picture

Published by

published
updated

Category: Web, HTML, Tech

Embed music in your profile

You've been searching long enough, I know, video guides and other blogs just didn't work for me, if you have been on the same boat, I got you! Here is a fool-proof code I used to make it work.

You will need to make sure the video is Public first!

You also need to replace "VIDEO_ID" with what ever your link is, for example xvFZjo5PgG0 at the end of https://www.youtube.com/embed/xvFZjo5PgG0 is what needs to be replaced !!

There are two "VIDEO_ID" fields in this code, just paste the same link part mentioned before.

Here is the script that works:

<iframe width="0" height="0" src="https://www.youtube.com/embed/VIDEO_ID?playlist=VIDEO_ID&loop=1&controls=1&autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" loading="lazy" class="hideobj">

</iframe>

I can answer questions, but I can't guarantee I am available to do so. I will reply as soon as possible.


0 Kudos

Comments

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