This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

track

Summary

Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise.

Property of apis/audio-video/TextTrackCueapis/audio-video/TextTrackCue

Syntax

Note: This property is read-only.

var result = TextTrackCue.track;

Return Value

Returns an object of type DOM NodeDOM Node

Examples

//. . .
var myTrack = document.getElementById("entrack").track; // get text track from track element
var myCues = myTrack.cues;   // get list of cues
// return the first cue's text track object (in this case, identical to myTrack above)
var theTrack = myCues[0].track;
//. . .

Related specifications

W3C HTML5 Specification
W3C Editor’s Draft

Attributions