I just upgraded the JW Flash player to version 4.1 and it is giving me an error. The browser activity is showing that it can't find the file... somehow it is thinking the file is at "http://www.sitename.com/files/" and ignoring the filename specified in the embed code:

<swf file="http://www.sitename.com/files/videos/video.flv"  action="swftools_swf_display_direct">

I have tried removing the complete url and just trying file="videos/video.flv" but still gives me the same error.

Again, when I inspect the rendered code it shows me the truncated file="http://www.sitename.com/files/" rather than the complete URL specified in the embed?

My player's location is "modules/swftools/shared/flash_media_player/player.swf"

What can I do to fix this?

Comments

Stuart Greenfield’s picture

To play back an flv you don't need to specify an action as SWF Tools will work this out for itself from the flv extension. You don't even need to specify the player, unless you want over-ride the default.

So simply using the filter

<swf file="http://www.sitename.com/files/videos/video.flv">

should be enough to get the file to play.

If that doesn't get things working post again.

Note -specifying actions, methods and players is covered in the documentation.

designbysoil’s picture

Still giving the same error. I used:

<swf file="http://www.sitename.com/files/VIDEOS/SomeVideo.flv">

Any other ideas?

Stuart Greenfield’s picture

I will have to investigate further. I wonder if this is related to #297337: "Could not display the flash because does not appear to exist." - at the end of that thread someone reports similar for SWF Tools 6, but I can't create this locally.

There is a suggestion for debugging on that page by adding a line to check the file path within the SWF Tools code.

Stuart Greenfield’s picture

Could you also post the markup from the page that isn't working so I can see what code SWF Tools is generating.

Stuart Greenfield’s picture

Does your filename have a space or other 'special' character in it? This sounds like it is almost certainly related to #297337: "Could not display the flash because does not appear to exist.". See the end of that thread for the details.

Stuart Greenfield’s picture

Priority: Critical » Normal
Status: Active » Closed (fixed)

Thread is two years old, and user never posted in response to the suggestion this was related to the proposed thread. No one else has reported this so assume we can close.