Skip to content

3.1.1

Compare
Choose a tag to compare
@thelevicole thelevicole released this 09 Dec 19:20
· 11 commits to main since this release

Improved hook inheritance.

Added the ability to set global hooks that apply to all instances or local hooks that apply to the current instance only.

Global hook example:

var player = new YouTubeToHtml5();
var myCallback = function() { console.log('example'); };
var hookPriority = 10;
var isGlobal = true;
player.addAction('api.end', myCallback, hookPriority, isGlobal);