Flash: How to make an embedded video not autoplay
- by jb
I'm embedding a Flash video into an HTML and would like the user to have to click it to begin playing. According to the Adobe <object> / <embed> element documentation, there are variety of methods to do this:
1) Add a Flash parameter inside the <object> tag:
<param name="play" value="false">
2) Add the attribute play inside the <embed> tag:
<embed ... play="false">
3) Add the attribute flashvars inside the <embed> tag:
<embed ... flashvars="play=false">
Which is awesome. Only ... none of them work for me:
http://johnboxall.github.com/test/flash/flash.htm
My code looks like this now:
<object width="590" height="475">
<param name="movie" value="untitled_skin.swf">
<param name="play" value="false">
<embed src="untitled_skin.swf" width="590" height="475" type="application/x-shockwave-flash" play="false" flashvars="autoplay=false&play=false" menu="false"></embed>
</object>
Anyone have any ideas? What am I doing wrong?