« Web, HTML, Tech Forum

YouTube music embed doesn't work

Posted by Jake

posted

Forum: Web, HTML, Tech

I'm trying to get this code to run and any way I try some part of the code gets deleted. Is there a reasoning behind this? How would I fix this?

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


Report Topic

3 Replies

Sort Replies:

Reply by Suzettey

posted

I'm no expert, I'm not sure if this is the issue, but you have two semicolons after "&", I don't think that's correct?


Permalink Report Reply

Reply by Gluma

posted

I don't have a solution, but there's possibly something in the src= part of the code that's messing it up since that's the only part that's getting deleted. Have no idea what, though :P... If you got the code from somewhere here, I'd suggest linking it here :o

While I don't know how to fix that, here's a music loop code that personally works for me! The video code the person is referring to is just the 11 characters right before the ? In a YouTube video's link.


Permalink Report Reply

Reply by Jake

posted

Thank you! Works perfect now


Permalink Report Reply