Easy Podcasting Plugin For FLV Files

Creating and modifying plugins.
Post Reply
Maccsta
Regular
Posts: 77
Joined: Mon Feb 19, 2007 6:07 am
Location: Leeds, England

Easy Podcasting Plugin For FLV Files

Post 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!
Last edited by Maccsta on Fri Apr 08, 2011 10:03 pm, edited 1 time in total.
Check out this blog today!
Buy Eye Secrets strips.
Best devices reviewed at http://www.penisstretchers.org/.
Order Capsiplex slimming pills today.
Buy Meratol diet pills online.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Easy Podcasting Plugin For FLV Files

Post by garvinhicking »

Hi!

Please post your config settings of the podcast plugin.

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/
Maccsta
Regular
Posts: 77
Joined: Mon Feb 19, 2007 6:07 am
Location: Leeds, England

Re: Easy Podcasting Plugin For FLV Files

Post 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 :mrgreen:
Check out this blog today!
Buy Eye Secrets strips.
Best devices reviewed at http://www.penisstretchers.org/.
Order Capsiplex slimming pills today.
Buy Meratol diet pills online.
Maccsta
Regular
Posts: 77
Joined: Mon Feb 19, 2007 6:07 am
Location: Leeds, England

Re: Easy Podcasting Plugin For FLV Files

Post by Maccsta »

Actually would there be any way to add a .jpg image to the flashplayer preview?
Check out this blog today!
Buy Eye Secrets strips.
Best devices reviewed at http://www.penisstretchers.org/.
Order Capsiplex slimming pills today.
Buy Meratol diet pills online.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Easy Podcasting Plugin For FLV Files

Post 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
# 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/
Maccsta
Regular
Posts: 77
Joined: Mon Feb 19, 2007 6:07 am
Location: Leeds, England

Re: Easy Podcasting Plugin For FLV Files

Post 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? :)
Check out this blog today!
Buy Eye Secrets strips.
Best devices reviewed at http://www.penisstretchers.org/.
Order Capsiplex slimming pills today.
Buy Meratol diet pills online.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Easy Podcasting Plugin For FLV Files

Post 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
# 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/
Maccsta
Regular
Posts: 77
Joined: Mon Feb 19, 2007 6:07 am
Location: Leeds, England

Re: Easy Podcasting Plugin For FLV Files

Post 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
Check out this blog today!
Buy Eye Secrets strips.
Best devices reviewed at http://www.penisstretchers.org/.
Order Capsiplex slimming pills today.
Buy Meratol diet pills online.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Easy Podcasting Plugin For FLV Files

Post 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
# 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/
Maccsta
Regular
Posts: 77
Joined: Mon Feb 19, 2007 6:07 am
Location: Leeds, England

Re: Easy Podcasting Plugin For FLV Files

Post 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!
Check out this blog today!
Buy Eye Secrets strips.
Best devices reviewed at http://www.penisstretchers.org/.
Order Capsiplex slimming pills today.
Buy Meratol diet pills online.
Maccsta
Regular
Posts: 77
Joined: Mon Feb 19, 2007 6:07 am
Location: Leeds, England

Re: Easy Podcasting Plugin For FLV Files

Post 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>
Check out this blog today!
Buy Eye Secrets strips.
Best devices reviewed at http://www.penisstretchers.org/.
Order Capsiplex slimming pills today.
Buy Meratol diet pills online.
Post Reply