Start a YouTube video when website opens

Viewed 1776

I'd like for a YouTube video to start playing right away with the sound muted when a user opens my webpage, but when embedding it from YouTube the user has to click on it and click "play" in order for the video to start playing.

Right now I get a code like this from YouTube:

<iframe width="560" height="315" src="https://www.youtube.com/embed/M0NXSdLlaZ4" frameborder="0" allowfullscreen></iframe>

And I'm not sure how to get the YouTube video to start playing as soon as the user opens the website.

1 Answers
Related