With the previous version, swftools worked fine with the SWF Object plugin. But now (last version of may 14), I can't make it work. I don't know what happens, but I can't embeed any kind of flash movie or media (with any player).

If I try, for example:

print swf_debug('http://www.example.com/somemovie.swf', '<p>Custom error message</p>', '200x180');

or

print swf_debug('files/music.mp3', '<p>Custom error message</p>');

I get:

Custom error message

I've tried with all the embeed methods and nothing :/

Comments

sime’s picture

Category: support » bug

The second one won't work because the system assumes the "files" part. Either use just "movie.mp3" or "/files/movie.mp2" (the slash tells swftools to look in the base dir.

Anyway, I tried to reproduce the first method, and yes you've upturned a bug here. I passed a swf file and it got played through simpleviewer (!?!).

You are using swf_debug and not getting a debug message. This means that the code is exiting because a) it checked and didn't find the file, or b) it couldn't work out how to play the file.

I will post back when I've got more info. In the meantime, I've improved the debug option (just committed now) so that it will give some info if the code bails early like that.

pnikosis’s picture

Thanks for your help.
I've tried with an MP3 (using full path):

print swf_debug('http://www.example.com/song.mp3', '<p>Custom error message</p>');

and I've got from the debug this message:

Please save this as a plain text file and submit it with your ticket.
-File not found--------------------------------------------------------

filepath: http://www.example.com/song.mp3
html_alt: 

Custom error message

params: 
flashvars: 
othervars: 
method: 

Paths : http://mydrupalsite.com and 

But, if I try to open a file saved in my "files" folder using:

print swf_debug('song.mp3', '<p>Custom error message</p>');

It works! So it seems to work only with files saved on the "files" folder, but not with external ones.

sime’s picture

Thanks for the input. I think the problem is that it's not recognising http://example.com as being an external path and it's trying to check its existence. I will fix this soon.

FYI. in the settings there is a setting for "media path" or something now. You should be able to put "http://example.com" there and then just "mymovie.swf" as the filename. I think that works ok at the moment, but yeah both methods should indeed work.

pnikosis’s picture

Changing the "media path" made it work. Thanks!

sime’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)