Tim Titus
asked on
Flash movie playing problem
I can play my flash movie via a simple HTML file from my hard disk, but when I load it up to my webserver, it doesn't play at all. I made sure to copy all of the relevant files and put them all in the same directory:
FLVPlayer_Progressive.swf
clearSkin_3.swf
TaleOfTwoEngineers1Mbps470 px.flv
What's wrong?
FLVPlayer_Progressive.swf
clearSkin_3.swf
TaleOfTwoEngineers1Mbps470
What's wrong?
<!-- Begin Flash Video for Progressive download -->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v..." width="470" height="260" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" value="&skinName=clearSkin_3&streamName=TaleOfTwoEngineers1Mbps470px&autoPlay=false&autoRewind=false" />
<embed src="FLVPlayer_Progressive.swf" flashvars="&skinName=clearSkin_3&streamName=TaleOfTwoEngineers1Mbps470px&autoPlay=false&autoRewind=false" quality="high" scale="noscale" width="470" height="260" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- End Flash Video for Progressive Download -->
You didnt close the </embed>
ASKER
Nope. No difference with an enclosed </embed>. I believe it should work with <embed .... /> without the closing.
ASKER
Could this be a problem with header definitions & MIME? Since the HTML page loads the video just fine from my local hard disk (no HTTP headers), I imagine that it uses the extension as the definition. Wouldn't the webserver (IIS) provide the correct headers for SWF and FLV by default?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I removed all path information and it works when all files are in one subdirectory on my hard disk. I copied all of the files to a subdirectory on my website. Since (as far as HTML works) everything is relative, it should pull from the same location, correct?
I also tried copying all of the files to the root of my website and it didn't work either.
I also tried copying all of the files to the root of my website and it didn't work either.
I'm having this same issue ... everything works fine from the html file, but it won't work if i try to pull it through http://localhost. Any luck on getting things up and running?
ASKER
Put all the files in the same directory and then try it. My problem was definately a path problem.