Help - Search - Members - Calendar
Full Version: Please Help! code for embedded video.
HTMLHelp Forums > Web Authoring > Graphics, Flash and Multimedia
Yvette
I've tried everything, but can't seem to change the code not to Auto Play the video when page loads. I must be putting the "autoPlay=false" code in the wrong place.

PLEASE HELP ME!!!!

<embed type="application/x-shockwave-flash" src="http://www.openforum.com/amex/amex_eventFLVPlayer.swf" id="FLVPlayer" name="FLVPlayer" bgcolor="#FFFFFF" quality="high" wmode="transparent" flashvars="baseURL=www.openforum.com&amp;basePort=&amp;VideoID=400000191" height="234" width="280" allowscriptaccess="never" ></embed>


Thank you!!

Yvette
jimlongo
I don't see any autoplay="false" anywhere.
Try putting it in that embed tag and see if that works for you.

BTW using only an embed tag could be problematic for some browsers.


mike007
QUOTE(jimlongo @ Feb 7 2008, 07:08 PM) *

I don't see any autoplay="false" anywhere.
Try putting it in that embed tag and see if that works for you.

BTW using only an embed tag could be problematic for some browsers.


You should use the folowing code:
<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24\"
width=\"766\" height=\"340\">
<param name=\"movie\" value=\"namefile.swf\" />
<param name=\"quality\" value=\"high\" />
<param name=\"menu\" value=\"false\" />
<!--[if !IE]> <-->
<object data=\"namefile.swf\"
width=\"766\" height=\"340\" type=\"application/x-shockwave-flash\">
<param name=\"quality\" value=\"high\" />
<param name=\"menu\" value=\"false\" />
<param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" />
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object>

This code works in all browsers and is validated html. Btw this is coded in php, just get rid of the echo's and \.
If it dont work just visit my website: http://www.finishedwebsites.nl and look at the source.

Hope thats helps you.


Shirley
This topic has been ask by many people on the Internet, there are also a lot of solutions for this problem. Check this one - How to make a video auto play on web page?
pandy
You really love Moyea web player, don't you? huh.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.