Page 1 of 1
Easy Podcasting Plugin For FLV Files
Posted: Fri Apr 08, 2011 9:23 pm
by Maccsta
Hi!
So I've installed this plugin, uploaded flvplayer.swf (renamed from player.swf) and swfobject.js to the folder /player/
So all i need to do is add a flv file to my post. I've added one here and there is no flashplayer, it just shows the url of the flv file:
Am I missing something?
Thanks!
Re: Easy Podcasting Plugin For FLV Files
Posted: Fri Apr 08, 2011 9:55 pm
by garvinhicking
Hi!
Please post your config settings of the podcast plugin.
Regards,
Garvin
Re: Easy Podcasting Plugin For FLV Files
Posted: Fri Apr 08, 2011 10:02 pm
by Maccsta
garvinhicking wrote:Hi!
Please post your config settings of the podcast plugin.
Regards,
Garvin
Thanks for the quick reply Gavin! Although I have resolved the issue, I hadn't added the url of flv file between html tags.
Sorry I should have played around with it a bit longer before I asked!
Works great

Re: Easy Podcasting Plugin For FLV Files
Posted: Fri Apr 08, 2011 10:06 pm
by Maccsta
Actually would there be any way to add a .jpg image to the flashplayer preview?
Re: Easy Podcasting Plugin For FLV Files
Posted: Fri Apr 08, 2011 10:15 pm
by garvinhicking
Maccsta wrote:Actually would there be any way to add a .jpg image to the flashplayer preview?
I'm sure this could be done, but currently the plugin doesn't support it. The syntax would be a bit more complex, and additional parameters would need to be passed on to the SWF player; I'm not sure if the suggggested jwflv-player also supports it. I've only recently worked with the flowplayer, which actually does support a custom image...
Regards,
Garvin
Re: Easy Podcasting Plugin For FLV Files
Posted: Fri Apr 08, 2011 10:25 pm
by Maccsta
garvinhicking wrote:Maccsta wrote:Actually would there be any way to add a .jpg image to the flashplayer preview?
I'm sure this could be done, but currently the plugin doesn't support it. The syntax would be a bit more complex, and additional parameters would need to be passed on to the SWF player; I'm not sure if the suggggested jwflv-player also supports it. I've only recently worked with the flowplayer, which actually does support a custom image...
Regards,
Garvin
Well the jwflv player does support it because I can see it's asking for an image here:
Code: Select all
s1.addVariable("image","http://www.tube.com/affiliate-clips/flv/gg/gg-winter.jpg");
Full code:
Code: Select all
<!-- podcastplayerstart -->
<p class="podcasting" id="podcast_gg-winter.flv"><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("/blog/plugins/serendipity_event_podcast/player/flvplayer.swf","single","530","320","7");
s1.addParam("allowfullscreen","true");
s1.addVariable("file","http://www.tube.com/affiliate-clips/flv/gg/gg-winter.flv");
s1.addVariable("image","http://www.tube.com/affiliate-clips/flv/gg/gg-winter.jpg");
s1.write("podcast_gg-winter.flv");
</script>
<!-- podcastplayerend --></
Any quick fix to allow me to add an image to each video or will we have to wait for a possible update to the plugin?

Re: Easy Podcasting Plugin For FLV Files
Posted: Fri Apr 08, 2011 10:38 pm
by garvinhicking
Hi!
Interesting! Grischa must have added this. Did you try to simply add a jpg image named just like the flv file itself?
If you create a image
http://www.tube.com/affiliate-clips/flv ... winter.jpg this should be used as the splash screen...
(check the podcast_player.php to see the variable substitution going on)
Regards,
Garvin
Re: Easy Podcasting Plugin For FLV Files
Posted: Fri Apr 08, 2011 11:27 pm
by Maccsta
This would probably work but i'm using affiliate videos so the video loaction is fixed and the jpg image location is fixed also. I have a url for the jpg image to use, but I can't change it's location.
I can try playing around with the code but I don't really know what I'm doing lol
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#");
Is it possible then to change this code and allow the jpeg to be added?
So the video is here:
http://www.tube.com/affiliate-clips/flv ... -millz.flv
The jpeg located here:
http://www.tube.com/affiliate-clips/flv ... -millz.jpg
garvinhicking wrote:Hi!
Interesting! Grischa must have added this. Did you try to simply add a jpg image named just like the flv file itself?
If you create a image
http://www.tube.com/affiliate-clips/flv ... winter.jpg this should be used as the splash screen...
(check the podcast_player.php to see the variable substitution going on)
Regards,
Garvin
Re: Easy Podcasting Plugin For FLV Files
Posted: Sat Apr 09, 2011 9:13 pm
by garvinhicking
Hi!
Hm, that wouldn't work - you would need to patch the plugin to use a different variable than #url_noext#. Can't you upload the videos to your own place, or use an embedded video player of the affiliate?
Or ask the affiliate if thumbs can be placed in the same dir?
Regards,
Garvin
Re: Easy Podcasting Plugin For FLV Files
Posted: Sat Apr 09, 2011 10:53 pm
by Maccsta
erm their player would be located here:
http://www.tube.com/flvplayer/flvplayer.swf
Code: Select all
<!-- podcastplayerstart -->
<p class="podcasting" id="podcast_gg-winter.flv"><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("http://www.tube.com/flvplayer/flvplayer.swf","single","530","320","7");
s1.addParam("allowfullscreen","true");
s1.addVariable("file","http://www.tube.com/affiliate-clips/flv/gg/gg-winter.flv");
s1.addVariable("image","http://www.tube.com/affiliate-clips/flv/gg/thumbs/gg-winter.jpg");
s1.write("podcast_gg-winter.flv");
</script>
<!-- podcastplayerend -->
Is that likely to work if I just dump that code in an entry or does it need to have the object parameters? I'm guessing it's not as straight forward as that!
Re: Easy Podcasting Plugin For FLV Files
Posted: Sun Apr 10, 2011 11:23 pm
by Maccsta
Ok cool I got it

Thanks!
Code: Select all
<object type="application/x-shockwave-flash" data="http://www.tube.com/flvplayer/flvplayer.swf" width="470" height="320" name="player" id="player">
<param name="movie" value="http://www.tube.com/flvplayer/flvplayer.swf" />
<param name="allowscriptaccess" value="always" />
<param name="allowfullscreen" value="true" />
<param name="flashvars"value="file=http://www.tube.com/affiliate-clips/flv/gg/gg-winter.flv&image=http://www.tube.com/affiliate-clips/flv/gg/thumbs/gg-winter.jpg"/>
</object>