![](https://secure.gravatar.com/avatar/2f79eb595fa8988e54cfd46620f2bd46?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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