Hi,

I've just downloaded the latest SWTTools. It appears that external files don't work in the filter.

Using

<swf file="http://www.externaldomain.com/myfile.flv">

The code produced is:

<script type="text/javascript">
swfobject.embedSWF("http://localhost/new_site/dev_html/sites/all/modules/contrib/swftools/shared/flash_media_player/player.swf", "swfobject2-id-12384070411", "400", "320", "7", "", { "width": "400", "height": "320", "file": "http://localhost/new_site/dev_html/sites/default/files/sites/default/files" }, { "swliveconnect": "default", "play": "true", "loop": "true", "menu": "false", "quality": "autohigh", "scale": "showall", "align": "l", "salign": "tl", "wmode": "opaque", "bgcolor": "#FFFFFF", "version": "7", "allowfullscreen": "true", "allowscriptaccess": "sameDomain", "base": "http://localhost/new_site/dev_html/sites/default/files/", "src": "http://localhost/new_site/dev_html/sites/all/modules/contrib/swftools/shared/flash_media_player/player.swf", "width": "400", "height": "320" }, { "id": "swf12384070411" });
</script>

I'm using swfobject 2.

You'll notice the file path is completely wrong.

Any suggestions?

Cheers
Zap

Comments

Stuart Greenfield’s picture

?!

Was it working before the upgrade? There was a minor change to the filter code as part of 6.x-2.4 as it didn't handle spaces properly, but I tested it and thought it was working ok!

Stuart Greenfield’s picture

I can't recreate this - I have tested on two machines locally, using both mp3 and flv files, and they're embedding fine. The embedding method shouldn't matter in this case, but just to be sure I tested direct embedding and SWF Object 2, and they're ok.

Does the external url you are using use any odd characters that might be upsetting the filter?

Stuart Greenfield’s picture

Status: Active » Closed (duplicate)

Setting this as a duplicate of #401140: Media path being set to sites/default/files/sites/default/files - I'm collecting all issues relating to the sites/default/files/sites/default/files under that one thread to try and get to the bottom of the bug. Please post any follow up on that thread so I can see everything in one place! Thanks.