You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

DE

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)

ParameterDescription
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)

priorityoptional

 

 

 

Remove Callback Event

Player.unregisterEventListener(eventName, callback, priority = 0)
ParameterDescription
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)

priorityoptional