Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Moved startTime and title into detail object and reworded explanations a bit.

Currently, all known HTML5 media events are supported. For a list of all these events, for example, see the following link: Media-Events (www.w3.org).

In addition, the following events are supported: 


chapterclicked

Via the event

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

are passed by clicking in the HTML5 or Flash player. In this way, the popularity of chapters can be evaluated

that was clicked. You can use this event to evaluate, for example, the popularity of chapters through an external analytics tool.

panel
Code Block
bgColor
language
#DCDCDCborderStyle
text
none
Player.registerEventListener('chapterclicked', function(
e
event) {console.log(
e
event);})
Parameter
Beschreibung
chapterclickedTracks time and title of the chapter
console.logOptional: Logging to the console

 

Sample Return

Panel
bgColor#DCDCDC
borderStylenone

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

;


Sample of Returned Event Object

Code Block
languagetext
Event {
	isTrusted: false, 
	detail: {
		startTime: 5.682, 
		title: "New chapter"
	},
	timeStamp: 36964.565,
	type: "chapterclicked"
}
ParameterDescription
isTrustedreturns true when the event is generated by 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)

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.

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
PanelbgColor#DCDCDCborderStylenone
Player.registerEventListener('lightadstarted', function(
e
event) {console.log(
e
event);})
Parameter
Beschreibung
lightadstartedTracks light ad started within a video
console.logOptional: Logging to the console

 

 

 

 
;