OverconfidentMagi
Laugh Like You've Won Always
So I was playing around with HTML and embedding a youtube video to play some background music whenever the page loads up, and everything works fine in the editor. The problem is that as soon as I hit submit it stops working. Going back in and looking at the source code, everything is the same except the autoplay=1 piece has been removed. Is this intended? If I can't do what I'm trying to do that's fine, I just don't want to be left thinking maybe if I try this it'll work.
The code before submit:
<p>
<iframe height="345" src="https://www.youtube.com/embed/[VIDEO ID]?rel=0&autoplay=1&loop=1&playlist=[VIDEO ID]" style="display:none;" width="420"></iframe>
</p>
And the code after submit:
<p>
<iframe height="345" src="https://www.youtube.com/embed/[VIDEO ID]?rel=0&loop=1&playlist=[VIDEO ID]" style="display:none;" width="420"></iframe>
</p>
I added the code to show what's happening. If anyone wants to try it just paste the first example into your post (add any youtube video ID) and it should play automatically when you switch out of source.
The code before submit:
<p>
<iframe height="345" src="https://www.youtube.com/embed/[VIDEO ID]?rel=0&autoplay=1&loop=1&playlist=[VIDEO ID]" style="display:none;" width="420"></iframe>
</p>
And the code after submit:
<p>
<iframe height="345" src="https://www.youtube.com/embed/[VIDEO ID]?rel=0&loop=1&playlist=[VIDEO ID]" style="display:none;" width="420"></iframe>
</p>
I added the code to show what's happening. If anyone wants to try it just paste the first example into your post (add any youtube video ID) and it should play automatically when you switch out of source.
Last edited by a moderator: