Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: improved formatting and wording of text

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:


Panel
borderColor#f2f2f2
bgColor#f2f2f2

Chapter Clicked

chapterclicked

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.

Code Block
languagetext
Playerplayer.registerEventListener('chapterclicked', function(event) {
	console.log(event);
});


Sample of Returned Event Object:

Code Block
languagetext
Event {
	isTrusted: false, 
	detail: {
		startTime: 5.682, 
		title: "NewChapter chapter1"
	},
	timeStamp: 36964.5655682,
	type: "chapterclicked"
}
ParameterDescription
isTrusted

returns true when the event is generated by a user action

Info

Note that this is false in this event. This is because the event is technically created by a script rather than a user action.

startTimetime in seconds when the chapter starts
titletitle of the chapter
timeStamp

the time

elapsed from the beginning of the current document's lifetime to when the event was created (in milliseconds)

stamp in milliseconds when the chapter begins

typereturns the name of the event: "chapterclicked"
Info

Note that the "isTrusted" value is false in this event. This is because the event is technically created by a script rather than a user action.



Panel
borderColor#f2f2f2
bgColor#f2f2f2

Light Ad Started

lightadstarted

The "lightadstarted" event triggers at the moment a light ad begins playing. Light ads are set up using VideoManager Pro's Ad Overlays feature.

Code Block
languagetext
Playerplayer.registerEventListener('lightadstarted', function(event) {
	console.log(event);
});