
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?