Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

registerPlugin


Hi,
we developed a jwplayer JS plugin which somehow doesn't work anymore. We are using the current cloud player (6.9.4867) so I suspect a (slient) version change breaking the plugin. The registerPlugin function gets called but it doesn't call the plugin's template function.
As I could not find any documentation about this I want to raise a support request. Even a simple "hello world" plugin doesn't work.

Is the PluginAPI and the registerPlugin function deprecated ? Our actual plugin is creating and managing some custom HTML overlay ontop of the player which worked perfectly using the plugin API - how can this be achieved otherwise in the case the plugin API is deprecated ?

the player is created using:

jwplayer("apitester").setup({
file: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4',
//image: 'http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg',
height: w_height,
width: w_width,
primary: primaryCookie,
controls: false,
plugins: {
"/hello.js": pluginCfg
}
});


and the simple plugin hello.js:

(function(jwplayer){
var template = function(player, config, div) {
function setup(evt) {
console.log(config);
player.onReady(setup);

};

this.resize = function(width, height) {

};

};

try {
jwplayer().registerPlugin('hello', '6.0', template);
} catch (ex) {
console.log(ex);
}

})(jwplayer);


Thank you very much !
cheers hanes

4 Community Answers

office

User  
0 rated :

it looks like half of my headline just got lost somehow .... sorry for that "meaningless" title ....

Ethan Feldman

JW Player Support Agent  
0 rated :

I have made plugins that work fine in 6.9.

Please provide a link.

anh_chang_sap_chet

User  
0 rated :

Good

Ethan Feldman

JW Player Support Agent  
0 rated :

Good?

This question has received the maximum number of answers.