kanala 0 Posted June 21, 2007 Report 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? Quote Link to post Share on other sites
justsomeguy 1,135 Posted June 21, 2007 Report Share Posted June 21, 2007 Did you compare your code with the code that works? Quote Link to post Share on other sites
kanala 0 Posted June 21, 2007 Author Report 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> Quote Link to post Share on other sites
justsomeguy 1,135 Posted June 21, 2007 Report 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. Quote Link to post Share on other sites
kanala 0 Posted June 22, 2007 Author Report 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 Quote Link to post Share on other sites
justsomeguy 1,135 Posted June 25, 2007 Report 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. Quote Link to post Share on other sites
Xtazy 0 Posted June 26, 2007 Report 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> Quote Link to post Share on other sites
justsomeguy 1,135 Posted June 26, 2007 Report 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. Quote Link to post Share on other sites
Xtazy 0 Posted June 26, 2007 Report 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) Quote Link to post Share on other sites
eBBee 0 Posted June 26, 2007 Report 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". Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.