Events are registered with an event name, a callback function and optionally a priority. The higher the priority, the earlier the callback will be called.
Please note that the following functions can be performed only after you have successfully undertaken the first steps (see chapter "Getting started").
After you have connected to the player, you can register or remove the callback using the following functions.
Register Callback Event
Player.registerEventListener(eventName, callback, priority = 0)
Parameter | Description |
---|---|
eventName | Name of the event. Currently all known HTML5 media events are supported (for a list of all events, for example, see the following link: media events: www.w3.org) |
priority | optional |
Remove Callback Event
Player.unregisterEventListener(eventName, callback, priority = 0)
Parameter | Description |
---|---|
eventName | Name of the event. Currently all known HTML5 media events are supported (for a list of all events, for example, see the following link: media events: www.w3.org) |
priority | optional |