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

Compare with Current View Page History

« Previous Version 4 Next »

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

In addition, the following events are supported:

 

chapterclicked

Via the event "chapterclicked", time and title of the chapter are passed by clicking in the HTML5 or Flash player. In this way, the popularity of chapters can be evaluated through an external analytics tool.

Player.registerEventListener('chapterclicked', function(e) {console.log(e);})

Parameter
Beschreibung
chapterclickedTracks time and title of the chapter
console.logOptional: Logging to the console

 

Sample Return

Event {isTrusted: false, startTime: 5.682, title: "New chapter" }

 

 

 

lightadstarted

If a light ad within a video is playing, it can be tracked by the event "lightadstarted".

Player.registerEventListener('lightadstarted', function(e) {console.log(e);})

Parameter
Beschreibung
lightadstartedTracks light ad started within a video
console.logOptional: Logging to the console