Loading nonexistent image with flash video

Creating and modifying plugins.
Post Reply
spunkjazz
Posts: 3
Joined: Wed Mar 11, 2009 8:50 pm

Loading nonexistent image with flash video

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Loading nonexistent image with flash video

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply