Represents a cue for timed tracks.
Platform Support
| Mozilla | Chrome | Safari | Opera | IE | Netscape | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|---|
Constructors
| Constructor | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
TimedTrackCue Constructor() : TimedTrackCue
Creates an instance of the TimedTrackCue.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no | ||
TimedTrackCue() : TimedTrackCueCreates an instance of the TimedTrackCue. Returns
|
|||||||||
Properties
| Property | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape |
|---|---|---|---|---|---|---|---|
|
track
: TimedTrack
Returns the TimedTrack object to which this timed track cue belongs, if any, or null otherwise.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
id
: String
Returns the timed track cue identifier.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
startTime
: Number
Returns the timed track cue start time, in seconds.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
endTime
: Number
Returns the timed track cue end time, in seconds.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
pauseOnExit
: Boolean
Returns true if the timed track cue pause-on-exit flag is set, false otherwise.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
direction
: String
Returns a string representing the timed track cue writing direction.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
snapToLines
: Boolean
Returns true if the timed track cue snap-to-lines flag is set, false otherwise.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
linePosition
: Number
Returns the timed track cue line position. In the case of the value being auto, the appropriate default is returned.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
textPosition
: Number
Returns the timed track cue text position.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
size
: Number
Returns the timed track cue size.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
alignment
: String
Returns a string representing the timed track cue alignment.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
voice
: String
Returns the timed track cue voice identifier.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
onenter
: Function
Specifies the event handler for the onenter event.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
onexit
: Function
Specifies the event handler for the onexit event.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
Functions
| Method | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
getCueAsSource() : String
Returns the timed track cue text in raw unparsed form.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no | ||
|
Returns
|
|||||||||
|
getCueAsHTML() : DocumentFragment
Returns the timed track cue text as a DocumentFragment of HTML elements and other DOM nodes.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no | ||
|
Returns
|
|||||||||
References
Availability
JavaScript 1.2|WhatWG