« Back to the HTML Forum

autoplay song

Posted by RosePink!!

posted

Forum: HTML Group

I've spent all afternoon trying to add a song to my code so that it starts playing when I open my page, but it just doesn't work. Can anyone help me? :(


Report Topic

1 Reply

Reply by ୨ৎMIMA୨ৎ

posted

grab your entire embed link. this is mine. then grab this string of numbers and letters again > 6fVE8kSM43I

.
src="https://www.youtube.com/embed/6fVE8kSM43I?si=Df8WRFq0DdVHUpEn

<iframe width="0" height="0" src="EMBEDLINK//?&;amp;;autoplay=1&;loop=1&playlist=STRING&;controls=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" loading="lazy">
</iframe>
</iframe>

looks like this at the end!


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


Permalink Report Reply