Embedding JW FLV Media Player

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
thepoacher
Regular
Posts: 14
Joined: Tue Jan 29, 2008 6:33 pm
Contact:

Embedding JW FLV Media Player

Post by thepoacher »

Hi,

I was hoping to be able to embed the http://www.jeroenwijering.com/?item=JW_FLV_Player in my website at http://www.mountain7.co.uk - should this be easy enough to do? My knowledge of adding folders etc to C-Panel is fairly limited but if someone could explain roughly how to go about it that would be really appreciated.

Many thanks in advance

Matt
All the things we forget scream for help in dreams

http://www.mountain7.co.uk
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Is that really superior to the serendipity Easy Podcasting plugin?
=Don=
thepoacher
Regular
Posts: 14
Joined: Tue Jan 29, 2008 6:33 pm
Contact:

Post by thepoacher »

Hi Don - thanks for that I wasn't aware of the plug in! I've downloaded it and (I think) carried out the instructions as per the installation document and see how the thing functions which is fine as it is (although I'm assuming it only works on media files uploaded to the directory as opposed to those from third party sources eg mediafire etc?) - I was really hoping for a sidebar plug in however. Is this going to be possible?

Thanks again

Matt
All the things we forget scream for help in dreams

http://www.mountain7.co.uk
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Matt - in all honesty, I have never used the easy podcasting plugin.

I believe the way it works is to detect your reference to a media file path/filename (ie/mysite/mytune.mp3) written into an entry, static page, or possibly html sidebar nugget, then converts that to code that includes the player itself.

Hopefully someone will chime in with greater experience. I would test its useage more thoroughly, but I am buried in other matters right now.
=Don=
thepoacher
Regular
Posts: 14
Joined: Tue Jan 29, 2008 6:33 pm
Contact:

Post by thepoacher »

Don - that's pretty much exactly what it does which is fine as it goes but it's pretty indiscriminate and just looks at anything that might be a media file and turns that into a music player. It's good for what it does but does seem a little cumbersome.

Now I'm guessing it must be pretty easy to embed a piece of podcast software into the sidebar to play, for instance, a selection of favourite tracks for that week etc but as I said in my original post my knowledge isn't quite there in how to implement it... Gah!

Thanks again though

Matt
All the things we forget scream for help in dreams

http://www.mountain7.co.uk
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Actually, yes, embedding a video in your sidebar is pretty easy:

1. Upload the Flash-Player you referenced to a serendipity directory, like "/flashplayer".

2. go to your s9y admin plugin management panel, add a HTML nugget sidebar plugin.

3. Disable your possible WYSIWWYG editor (either by disabling javascript in your browser, or in your personal s9y preferences by turning of WYSIWYG)

4. Configure the created HTML nugget and insert the HTML code you need to play your video, i.e:

Code: Select all

<p id='preview'>The player will show in this paragraph</p>

<script type='text/javascript' src='/flashplayer/swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('/flashplayer/player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=/flashplayer/video.flv');
s1.write('preview');
</script>
This would then display a /flashplayer/video.flv in your sidebar.

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/
ctuga
Regular
Posts: 21
Joined: Mon Oct 27, 2008 11:03 pm

Re: Embedding JW FLV Media Player

Post by ctuga »

I've made everything as garvinhicking said and it work fine, however the next day when a logged into my site flash player disappeared from my page.
How can i solve this please?
thanks to all
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Embedding JW FLV Media Player

Post by garvinhicking »

Hi!

Usually it can only disappear, if you changed anything? And your URL would help, of course. :)

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/
ctuga
Regular
Posts: 21
Joined: Mon Oct 27, 2008 11:03 pm

Re: Embedding JW FLV Media Player

Post by ctuga »

Hi garvinhicking,many thks for your help.
I'v got the problem solved, i forgot to put the tag http:// in.
However is it possible to add the player into a static page or a article,so that only friends can see video with a password access?
Many thanks
regards my url is http://www.ctuga.com
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Embedding JW FLV Media Player

Post by garvinhicking »

Hi!

Sure, you can put password protection on a staticpage, or also on a blog article (if you use the plugin "Extended options for entries"). The HTML-Code mentioned in this thread can also be used in a blog article or staticpage, yes.

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/
ctuga
Regular
Posts: 21
Joined: Mon Oct 27, 2008 11:03 pm

Re: Embedding JW FLV Media Player

Post by ctuga »

Hi
sorry for only now my thanks but problems with my ISP
i'm going to try it out now.
thanks
Post Reply