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

JWPlayer callback function is not getting executed


In code shown below overlay function is not called.

(function(jwplayer) {
var overlay = function( player, config, div ) {
console.log('hi');
}

jwplayer().registerPlugin( 'overlay','2.0', overlay );
})(jwplayer);

Please help me with it. Also I am not receiving any errors on console.

Is registerPlugin API deprecated in JWPlayer 7. If yes, what is an alternative?

1 Community Answers

Todd

JW Player Support Agent  
0 rated :

There is no registerPlugin() in JW7, but we do have

jwplayer().getPlugin()

Targets a particular plugin for API calls. Currently functions with our Sharing and Related plugins.

Please see https://developer.jwplayer.com/jw-player/docs/developer-guide/api/javascript_api_reference/ for more details.

What are you trying to do with this code?

This question has received the maximum number of answers.