[flash] How to make an embedded video not autoplay

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?

This question is related to flash flash-autoplay

The answer is


Try adding these after <Playlist>

<AutoLoad>false</AutoLoad>
<AutoPlay>false</AutoPlay>

Try replacing your movie param line with

<param name="movie" value="untitled_skin.swf&autoStart=false">


fenomas's answer was really good...it got me off of looking into the HTML code. I know that jb was looking for something that works in Captivate, but the question is broad enough to include people working out of Flash (I'm using CS5), so I thought I'd throw in the specific answer to my situation here.

If you're using the stock Adobe FLVPlayback component in Flash (you probably are if you used File > Import > Import Video...), there's an option in the Properties panel, under Component Parameters. Look for 'autoPlay' and uncheck it. That'll stop autoplay when the page loads!


I had the same problem and came across this post. Nothing worked. After randomly playing around, I found that <embed ........ play="false"> stopped it from playing automatically. I now have the problem that I can't get a controller to appear, so can't start the movie! :S


Try adding these after <Playlist>

<AutoLoad>false</AutoLoad>
<AutoPlay>false</AutoPlay>

Try replacing your movie param line with

<param name="movie" value="untitled_skin.swf&autoStart=false">


I had the same problem and came across this post. Nothing worked. After randomly playing around, I found that <embed ........ play="false"> stopped it from playing automatically. I now have the problem that I can't get a controller to appear, so can't start the movie! :S


fenomas's answer was really good...it got me off of looking into the HTML code. I know that jb was looking for something that works in Captivate, but the question is broad enough to include people working out of Flash (I'm using CS5), so I thought I'd throw in the specific answer to my situation here.

If you're using the stock Adobe FLVPlayback component in Flash (you probably are if you used File > Import > Import Video...), there's an option in the Properties panel, under Component Parameters. Look for 'autoPlay' and uncheck it. That'll stop autoplay when the page loads!