tarsus
01-29-2008, 10:15 AM
In a web page, I have an object/embed tag embedding a WMV file. (Don't worry, the problem doesn't seem to be related to the HTML):
<object id="video" width="320" height="285" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param id="video_filename" name="FileName" value="video/posivideo-wm-37mb.wmv">
<param name="animationatStart" value="false">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" Name="MediaPlayer"
src="video/posivideo-wm-37mb.wmv" AutoStart="true" ShowStatusBar="0" volume="-1" width="320" height="285"></embed>
</object>
I've got this on a local server and can browse to it like this:
http://dev.mysite.com/salescd/html/video_win.html
Works fine. I can also simply open the file, rather than browsing to it through HTTP:
file:///W:/dev/salescd/html/video_win.html
Works fine. And finally, when I burn the entire project to a CD and open it from there, it works fine.
But for some reason, if I move the project folder to my Desktop or to another network drive, like the following example, the video doesn't play:
file:///G:/Software%20Development/Sales%20CD/html/video_win.html
Here's the real kicker, and the reason this is not an error in the HTML path: If I DIRECTLY open the WMV from that folder (I mean use File>Open and browse right to the WMV itself), I get an error saying Windows Media Player can't find the file!
This only happens in Firefox, not IE. The project is intended for CD, so this isn't a critical issue. But I don't like not knowing why things don't work.
<object id="video" width="320" height="285" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param id="video_filename" name="FileName" value="video/posivideo-wm-37mb.wmv">
<param name="animationatStart" value="false">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" Name="MediaPlayer"
src="video/posivideo-wm-37mb.wmv" AutoStart="true" ShowStatusBar="0" volume="-1" width="320" height="285"></embed>
</object>
I've got this on a local server and can browse to it like this:
http://dev.mysite.com/salescd/html/video_win.html
Works fine. I can also simply open the file, rather than browsing to it through HTTP:
file:///W:/dev/salescd/html/video_win.html
Works fine. And finally, when I burn the entire project to a CD and open it from there, it works fine.
But for some reason, if I move the project folder to my Desktop or to another network drive, like the following example, the video doesn't play:
file:///G:/Software%20Development/Sales%20CD/html/video_win.html
Here's the real kicker, and the reason this is not an error in the HTML path: If I DIRECTLY open the WMV from that folder (I mean use File>Open and browse right to the WMV itself), I get an error saying Windows Media Player can't find the file!
This only happens in Firefox, not IE. The project is intended for CD, so this isn't a critical issue. But I don't like not knowing why things don't work.