By default when you embed a youtube video on a web page using the YouTube embed code the user has to press the play button. For all situations where you want the video to autoplay you need to make two changes to the object embed code that you get from YouTube.
Look for the location of your video in the object embed code, it should be like:
http://www.youtube.com/watch?v=yRj79pIEkW4
Then add the following at the end:
?autoplay=1
i.e http://www.youtube.com/watch?v=yRj79pIEkW4?autoplay=1
<iframe width="420" height="315" src="http://www.youtube.com/embed/yRj79pIEkW4?autoplay=1" frameborder="0" allowfullscreen></iframe>
No comments:
Post a Comment