Page 1 of 1

Loading nonexistent image with flash video

Posted: Sat Dec 19, 2009 12:51 pm
by spunkjazz
Hi,
I'm using s9y 1.4.1 and the Easy Podcasting Plugin 1.23. Recently I found entries like the following inside my Apache error log:

Code: Select all

File does not exist: /var/www/serendipity/uploads/foo.jpg
Searching for the reason led me to the easy podcasting plugin. As I'm using *.flv videos it uses the following code from podcast_player.php:

Code: Select all

@DEFINE('PLUGIN_PODCAST_FLVPLAYER'          ,'
<p class="podcasting" id="podcast_#filename#"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player. JavaScript is also needed to see this player.</p>
<script type="text/javascript">
    var s1 = new SWFObject("#plugin#/player/flvplayer.swf","single","#intwidth#","#intheight#","7");
    s1.addParam("allowfullscreen","true");
    s1.addVariable("file","#url#");
    s1.addVariable("image","#url_noext#.jpg");
    s1.write("podcast_#filename#");
</script>
');
The line

Code: Select all

s1.addVariable("image","#url_noext#.jpg");
assumes that there is a jpg file with the same name as the flv file. But where is the image file supposed to come from? Apparently it is not in the media library. Or should the line be removed from the javascript?
Thanks in advance
Tobias

Re: Loading nonexistent image with flash video

Posted: Sat Dec 19, 2009 4:17 pm
by garvinhicking
Hi!

It's for people that upload a manual image file called the same like the video file for a thumbnail preview. Doing a check for that was not yet implemented, because the extra 404 call doesn't terribly hurt...

Regards,
Garvin