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
Comment #1
simeThe 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.
Comment #2
pnikosis commentedThanks for your help.
I've tried with an MP3 (using full path):
and I've got from the debug this message:
But, if I try to open a file saved in my "files" folder using:
It works! So it seems to work only with files saved on the "files" folder, but not with external ones.
Comment #3
simeThanks 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.
Comment #4
pnikosis commentedChanging the "media path" made it work. Thanks!
Comment #5
simeComment #6
(not verified) commented