length
Summary
The length attribute returns the number of cues in the list represented by the TextTrackCueList.
Property of apis/audio-video/TextTrackCueListapis/audio-video/TextTrackCueList
Syntax
Note: This property is read-only.
var result = TextTrackCueList.length;
Return Value
Returns an object of type unsigned longunsigned long
Examples
//. . .
var myTrack = document.getElementById("entrack").track; // get text track from track element
var myCues = myTrack.cues; // get list of cues
// report how many cues are in the list
alert(myCues.length);
//. . .
Related specifications
- W3C HTML5 Specification
- W3C Editor’s Draft
Attributions
Microsoft Developer Network: Windows Internet Explorer API reference Article