Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-06-11 13:14:38

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Embedding Jeroen's mediaplayer with elk_mediaplayer,I need it modded??

I haven’t found on this forum any mention of elk_mediaplayer plugin so hopefully some may find this useful. It is, in my opinion, a better version of the bas_flvplayer as it uses a different, updated version of Jeroen Wijring’s great FLV MediaPlayer .

I have the plugin working perfectly, twas a very easy setup, but I need to modify it to display a placeholder image before you click to start the film, as it is not the default, and not built into the plugin.

I’m pretty sure that one needs to add the SWFObject variables for the image, and also (the tricky bit) create the code so that the plugin finds my <txp: article_image> and adds it to the dynamically created xml playlist within some <image></image> tags, rather like it does find the film(s) for the playlist.

I don’t know if my suggested way is the best, so please correct me if I’m wrong.

I am next to useless with php and difficult code in general, so I am calling on anyone and everyone to help me out.

A thousand thanks are in order for the person/people that helps me out

Cheers


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#2 2008-06-12 14:04:33

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: Embedding Jeroen's mediaplayer with elk_mediaplayer,I need it modded??

I know no-one’s interested, but I managed to contact the author of this plugin and he very kindly updated it for me to include the clickable article image at the front of each playlist of films.

You can download version 0.1b elk_mediaplayer plugin at his website, here


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#3 2008-06-12 14:35:06

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Embedding Jeroen's mediaplayer with elk_mediaplayer,I need it modded??

rathersplendid,

Thanks. I’ll take a look.

Offline

#4 2008-06-12 21:40:31

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Embedding Jeroen's mediaplayer with elk_mediaplayer,I need it modded??

Thanks for mentioning this plugin, I didn’t know it.

Offline

#5 2008-06-13 06:21:41

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: Embedding Jeroen's mediaplayer with elk_mediaplayer,I need it modded??

That’s alright, I had spent so much time messing around with the bas_flvplayer and thought that there was not another solution, so I’m glad I found it and that I could make you guys aware.


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#6 2008-06-30 22:26:06

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Embedding Jeroen's mediaplayer with elk_mediaplayer,I need it modded??

nice plugin. useful ability to build playlist :)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#7 2012-09-19 15:59:48

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: Embedding Jeroen's mediaplayer with elk_mediaplayer,I need it modded??

Is there anyone that could post the plugin here (the original site is over)?

I’m looking for a way to embed a video gallery or playlist in a page, not only a single video.

Thansk for any hint…

Offline

#8 2012-09-20 02:02:28

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Embedding Jeroen's mediaplayer with elk_mediaplayer,I need it modded??

For an audio player, I used rah_external_output like this to produce a playlist of uploaded mp3’s

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<txp:file_download_list category="one-step-closer" limit="20">
<item>
<title><txp:file_download_description /></title>
<media:content url="<txp:site_url />files/<txp:file_download_name />" type="audio/mp3" />
<media:thumbnail url="<txp:site_url />images/51.gif" />
<media:credit><txp:site_name /></media:credit>
<link><txp:site_url /></link>
</item>
</txp:file_download_list>
</channel>
</rss>

Then added the JW player to a txp article form directly like this and called it where needed… you just have to make sure the article is the :

<div class="video_holder">
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('/jw/player.swf','mpl','550','320','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('playlistsize','300');
so.addVariable('bufferlength','20');
so.addVariable("file","<txp:site_url />?rah_external_output=<txp:category1 />");
so.addVariable("skin", "<txp:site_url />jw/simple.swf");
so.addVariable('playlist','bottom');
so.write('mediaspace');
</script>
</div>

It works great.

Obviously you would need to change it for videos…. but I did use a Youtube playlist with videos on that site using the same kind of setup.

<div class="video_holder">
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('/jw/player.swf','mpl','550','830','9');
so.addParam('allowfullscreen','true');
so.addVariable('autostart','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://gdata.youtube.com/feeds/api/users/roundmountaingirls/uploads?v=2');
so.addVariable('playlistsize','500');
so.addVariable('playlist','bottom');
so.write('mediaspace');
</script>
</div>

Hopefully that helps you in some way

Offline

Board footer

Powered by FluxBB