Click to See Complete Forum and Search --> : Firefox can't find video file


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.

TJ111
01-29-2008, 10:19 AM
Give this article a read, it talks about the best method for embedding flash in a cross browser environment.

http://www.alistapart.com/articles/flashsatay/

(thanks whoever first gave me that link)

Edit: after reading your entire post, I'm not sure if this is the correct solution or not. It won't hurt to give it a look over though.

tarsus
01-30-2008, 09:24 AM
I'm afraid that has little to do with my problem. It's not Flash I'm trying to embed at all.

And as I stated, I seem to have traced the problem to something beyond the embedding technique. Since Firefox claims it can't find the movie file when I DIRECTLY open it, the issue is not with the HTML page at all.

Is anyone aware of any kind of bug in Firefox that would cause it to have problems with a local file path (rather than a URL)? As I've said, I can open it from some locations, but from others it claims "file not found."

UnKnoW
02-28-2008, 01:42 PM
Yeah I had the same problem once.

I don't remember exactly how I solved it but I know it's about the path. Try it with all kinds of folder names, you will find the problem. I think it has to do with spaces or special caracters within your folder name.

Hope this helps

___________________________________
Dominic Pelletier ( www.dompelletier.com (http://www.dompelletier.com) )