kanala Posted June 21, 2007 Share Posted June 21, 2007 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 comment Share on other sites More sharing options...
justsomeguy Posted June 21, 2007 Share Posted June 21, 2007 Did you compare your code with the code that works? Link to comment Share on other sites More sharing options...
kanala Posted June 21, 2007 Author Share Posted June 21, 2007 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 comment Share on other sites More sharing options...
justsomeguy Posted June 21, 2007 Share Posted June 21, 2007 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 comment Share on other sites More sharing options...
kanala Posted June 22, 2007 Author Share Posted June 22, 2007 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 comment Share on other sites More sharing options...
justsomeguy Posted June 25, 2007 Share Posted June 25, 2007 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 comment Share on other sites More sharing options...
Xtazy Posted June 26, 2007 Share Posted June 26, 2007 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 comment Share on other sites More sharing options...
justsomeguy Posted June 26, 2007 Share Posted June 26, 2007 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 comment Share on other sites More sharing options...
Xtazy Posted June 26, 2007 Share Posted June 26, 2007 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 comment Share on other sites More sharing options...
eBBee Posted June 26, 2007 Share Posted June 26, 2007 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 comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.