I need to be able to implement a plugin for the jwplayer - how does that work?
Specifically it is this plugin I need to work with:
http://www.longtailvideo.com/AddOns/get-examples.html?addon=137&vid=139&currex=0
Any help will be hugely appreciated.
Search Forums
5 posts Started 1 year ago by kjaerolsen Latest reply from kjaerolsen
I need to be able to implement a plugin for the jwplayer - how does that work?
Specifically it is this plugin I need to work with:
http://www.longtailvideo.com/AddOns/get-examples.html?addon=137&vid=139&currex=0
Any help will be hugely appreciated.
When I click that link it just takes me to the page where all the JW addons are listed - which plugin are you looking for in specific?
In most cases adding a plug-in should be straight forward but you'll need to know a little Python to implement it.
Hi Stuart,
Thanks for your quick reply.
It was specifically the SlideSync plugin from learningapi.com.
I am afraid I haven't had the chance to learn too much Python yet, but any help, with explanations of why, would greatly benefit my learning and would be more than greatly appreciated.
Thanks in advance - and might I say an excellent product that you have developed.
Hi kjaerolsen, if you don't mind doing a little tinkering you should be able to integrate that plugin yourself. Have a look at https://github.com/simplestation/mediacore/blob/master/mediacore/lib/players.py#L754 ... here we're building up the dictionary of settings (aka. associative array in PHP or simply an object in Javascript) that is passed to JWPlayer for rendering. The values in this "vars" dictionary are passed directly to the JW Embedder javascript, so you can add whatever you'd like here.
In your case you'll likely want to add in some code here:
https://github.com/simplestation/mediacore/blob/master/mediacore/lib/players.py#L809
It should read something like:
def plugins(self):
plugins = {}
plugins['slideSync'] = {'xmlPath': '/path/to.xml', 'position': 'right', 'screencolor': '#fff'}
#....
Hopefully that helps! If you're looking to get up to speed quickly with python you might want to start with dive into python or the official tutorial.
Thanks for your help. I can't seem to get it to work though.
Thanks for the tutorial sources. I will dive right into it.
You must log in to post.