line
Summary
The text track cue line position. In the case of the value being auto, the string “auto” is returned.
Property of apis/audio-video/TextTrackCueapis/audio-video/TextTrackCue
Syntax
var result = TextTrackCue.line;
TextTrackCue.line = value;
Return Value
Returns an object of type unsigned longunsigned long
If current value is set to auto, the string "auto"
is returned.
Examples
//. . .
var myTrack = document.getElementById("entrack").track; // get text track from track element
var myCues = myTrack.cues; // get list of cues
for (var i = 0; i < myCues.length; i++) {
// set all cue line positions to auto
myCues[i].line = "auto";
}
//. . .
Related specifications
- W3C HTML5 Specification
- W3C Editor’s Draft
Attributions
Microsoft Developer Network: Windows Internet Explorer API reference Article