Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated media events link

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. 

Note

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

Panel
bgColor#DCDCDC
borderStylenone

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

Media-Events)

priorityoptional
 


Remove Callback Event

Panel
bgColor#DCDCDC
borderStylenone
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

Media-Events)

priorityoptional