...

View Full Version : Video embedding problem



mbeagle
09-30-2008, 06:36 PM
I'm trying to embed a video on my website. It all works fine on Chrome, IE and Safari latest version but fails to work properly on Firefox.

here is the code:


<object style="border: solid 1px black"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows® Media Player components..."
type="application/x-oleobject"
width="410px" height="390px">
<param name="fileName" value="MY_VIDEO_FILENAME">
<param name="animationatStart" value="false">
<param name="transparentatStart" value="false">
<param name="autoStart" value="false">
<param name="showControls" value="true">
<param name="Volume" value="-450">
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src="MY_VIDEO_FILENAME"
width="410px" height="390px"
autostart="0"
showcontrols="1"
transparentatStart="0"
animationatStart="0"
volume="-450">
</embed>
</object>


What happens in Firefox is that the resizing doesn't work at all and the controls toolbar doesn't show up.
I've tried removing the resizing tags but then a small default video window size takes over and I end up with the same problem.

Any ideas where the problem is?
I've looked all over the net and keep seeing the same kind of code so really don't see what I'm doing wrong.

Many thanks

BoldUlysses
09-30-2008, 09:47 PM
<embed> is a proprietary IE tag. Firefox may not like that, especially if you're using a strict DOCTYPE (which you probably aren't, at least not the XHTML one, if your <param> tags aren't closed).

This article is a good writeup (http://alistapart.com/articles/byebyeembed/) on embedding video files cross-browser without the <embed> tag.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum