Stop youtube video autoplay

ManpreetSandhu picture ManpreetSandhu · Jun 2, 2012 · Viewed 53.9k times · Source

I am using youtube video in "iframe" with height width src etc. but it is playing auto. I want to play it with onclick. Please help me.

Answer

Alex W picture Alex W · Jun 5, 2012

To disable autoplay, just put &autoplay=0 after the video ID so it looks like this:

<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=0"></param>
<embed src="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=0" type="application/x-shockwave-flash" width="425" height="350"></embed>
</object>

http://support.google.com/youtube/bin/answer.py?hl=en&answer=1181821

Updated code.