Currently, all known HTML5 media events are supported. For a list of these events, see the following link: Media-Events.
In addition, the following events are supported:
Chapter Clicked |
The "chapterclicked" event triggers as soon as the user clicks one of the video's chapters. The event object will include the start time and title of the chapter that was clicked. You can use this event to evaluate, for example, the popularity of chapters through an external analytics tool.
player.registerEventListener('chapterclicked', function(event) { console.log(event); }); |
Sample of Returned Event Object:
Event { isTrusted: false, detail: { startTime: 5.682, title: "Chapter 1" }, timeStamp: 5682, type: "chapterclicked" } |
Parameter | Description | |
---|---|---|
isTrusted | returns true when the event is generated by a user action
| |
startTime | time in seconds when the chapter starts | |
title | title of the chapter | |
timeStamp | the time stamp in milliseconds when the chapter begins | |
type | returns the name of the event: "chapterclicked" |
Light Ad Started |
The "lightadstarted" event triggers at the moment a light ad begins playing. Light ads are set up using VideoManager Pro's Ad Overlays feature.
player.registerEventListener('lightadstarted', function(event) { console.log(event); }); |