Jump to content

help! embedded windows media player doesn't show up on firefox


Recommended Posts

I have created an embedded windows media player but it only shows up in IE and not Mozilla Firefox. I know that it should work because this one HERE! works for Mozilla Firefox. Here is my code:

<object id="MediaPlayer" width="320" height="286" 		  classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" 		  standby="Loading Windows Media Player components..." 		  type="application/x-oleobject" 		  codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">			<param name="filename" value="video/liondance2007.wmv">			<param name="Showcontrols" value="True">			<param name="autoStart" value="False">

What have I done wrong?

Link to post
Share on other sites
Did you compare your code with the code that works?
Yes but I don't see anything special that the other code has. Plus I don't understand some things that he's added. Can anyone help?This is his code:
<object data="http://www.cwdjr.info/movie/cancanvbr.wvx" type="video/x-ms-wvx" style="width:320px; height:310px"><param name="src" value="http://www.cwdjr.info/movie/cancanvbr.wvx" valuetype="ref" /><param name="showcontrols" value="1" valuetype="data" /><param name="showstatusbar" value="1" valuetype="data" /><param name="autostart" value="0" valuetype="data" /><param name="volume" value="0" valuetype="data" /><param name="PlayCount" value="1" valuetype="data" /></object>

Link to post
Share on other sites

Compare that with your code:

<object id="MediaPlayer" width="320" height="286" 		  classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" 		  standby="Loading Windows Media Player components..." 		  type="application/x-oleobject" 		  codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">			<param name="filename" value="video/liondance2007.wmv">			<param name="Showcontrols" value="True">			<param name="autoStart" value="False">

You have the classid and codebase defined, and he does not. The classid in particular probably makes it Windows or IE-only. You also have a different value for type, yours is an OLE object and the other is set to the mime type of the video involved (the mime type for WVX videos). Try setting your mime type to whatever it is for a WMV, you might need to look that up. You also have a "filename" parameter and the other has a "src" parameter. Also, you're missing the closing </object> tag.

Link to post
Share on other sites

Ok I'v tried his one, the wmp shows up but you cant press play. Nothing happens.

<object data="video/liondance2007.wmv" type="video/x-ms-wmv" style="width:320px; height:310px"><param name="src" value="video/liondance2007.wmv" valuetype="ref" /><param name="showcontrols" value="1" valuetype="data" /><param name="showstatusbar" value="1" valuetype="data" /><param name="autostart" value="0" valuetype="data" /><param name="volume" value="0" valuetype="data" /><param name="PlayCount" value="1" valuetype="data" /></object>

On his site he uses wvx which apparently directs you to the wmv video file. Why doesn't mine work, is the src wrong?Thanks

Link to post
Share on other sites

I don't know, the source is on your server, I can't tell if it's right or not. If you are hosting this on anything other then a Windows server then keep in mind that case sensitivity matters, make sure to check the spelling of filenames and be consistent.

Link to post
Share on other sites

try to use quick time:

<center><object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" height="272" width="480">  <param name="src" value="video/liondance2007.wmv">  <param name="controller" value="TRUE">  <param name="target" value="myself">  <param name="type" value="video/quicktime">  <embed src="video/liondance2007.wmv" pluginspage="http://www.apple.com/quicktime/download/" controller="TRUE" target="myself" type="video/quicktime" height="272" width="480"> </object></center>

Link to post
Share on other sites

I'd stay away from Quicktime if you can, more people have WMP installed and a lot of people (like me) refuse to use Quicktime anyway. Software like Quicktime, Real Player, and anything else that is going to pester me with update popups and notifications is going to get uninstalled pretty damn quick.

Link to post
Share on other sites

i have no pop-ups or notifications from quick-time...and in my opinion it's buffering and loading the videos faster than WMP...anyway, i wanted to say that because i saw that you have problems with your wmp codes, so i thought that maybe it would work would this one...anyway, just an opinion (cuz this is what i use) :)

Link to post
Share on other sites
Ok I'v tried his one, the wmp shows up but you cant press play. Nothing happens.
<object data="video/liondance2007.wmv" type="video/x-ms-wmv" style="width:320px; height:310px"><param name="src" value="video/liondance2007.wmv" valuetype="ref" /><param name="showcontrols" value="1" valuetype="data" /><param name="showstatusbar" value="1" valuetype="data" /><param name="autostart" value="0" valuetype="data" /><param name="volume" value="0" valuetype="data" /><param name="PlayCount" value="1" valuetype="data" /></object>

On his site he uses wvx which apparently directs you to the wmv video file. Why doesn't mine work, is the src wrong?Thanks

Just a guess, try with complete path instead of relative "video/liondance2007.wmv".
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...