Flash: How to make an embedded video not autoplay

Posted by jb on Stack Overflow See other posts from Stack Overflow or by jb
Published on 2008-12-30T02:20:40Z Indexed on 2010/04/14 10:23 UTC
Read the original article Hit count: 1009

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?

© Stack Overflow or respective owner

Related posts about flash

Related posts about flashplayer