TimelineMarkerReached

Topics: HTML5 web
Dec 13, 2011 at 5:49 PM

Is TimelineMarkerReached event supported? 

Dec 13, 2011 at 6:02 PM

Yes, but in the HTML5 Player Framework the event is called "timelinecuereached". "Markers" are referred to as "cues" by the W3C Track spec.

To listen for the the "timelinecuereached" event, you can do something similar to the following example:

var myPlayer = new PlayerFramework.Player("myVideo",
{
	timelineCues:
	[
		new PlayerFramework.TextTrackCue({
			startTime: 15,
			endTime: 20
		})
	]
});

myPlayer.addEventListener("timelinecuereached", function(e)
{
    console.log("timelinecuereached: ", e);
});

Dec 13, 2011 at 6:09 PM

Oh neat! Thank you!