PDA

View Full Version : flash video (flv) plays local, but not online


RyanSF07
03-03-2007, 05:34 PM
Hi Everyone,

Using flash 8 video encoder and dreamweaver, I've compressed and created a skin for a video. I've put all the parts in one test folder. When I click the test.html file within that single folder, bingo - the video plays beautifully. I love it.

Now, I've uploaded that same folder to my server. When I navigate to the test.html, the page text and images load, but the video does not. (why not?)

Below is the code that works fine local, but breaks online.

What am I doing wrong?
Thank you very much for your help :)
Ryan


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="320" height="240" id="FLVPlayer">
<param name="movie" value="6-video.swf" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Corona_Skin_3&streamName=6-video&autoPlay=false&autoRewind=false" />

<embed src="6-video.swf" flashvars="&MM_ComponentVersion=1&skinName=Corona_Skin_3&streamName=6-video&autoPlay=false&autoRewind=false"
quality="high" scale="noscale" width="320" height="240" name="FLVPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

aureagle
09-18-2011, 10:18 AM
there is a parameter to set if the flash should allow local, remote domains etc. I think the flash player you're using (by defaults) allows localhost user to view the video while it doesn't allow remote users to view. You need to set that parameter. It should be mentioned in your help files that come with the flash player.

adninjastrator
09-21-2011, 02:32 PM
When the video player works locally but not on the server, it's almost always a pathing issue... either the path to one of the files is wrong, spelling is wrong (upper/lower case), the file is in the wrong folder, or the file is missing.
For rewiew:
Pathing issues

Almost always when it works on the local machine and not the server, it's a pathing problem.
You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location. So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
Best wishes,
Eye for Video
www.cidigitalmedia.com

of course there is no way for us to know for sure unless you post a link to the actual page.
Best wishes,
Adninjastrator

klim4
09-24-2011, 06:53 PM
good post