public interface TextTrackCue extends EventDispatcher<TextTrackCueEvent>
- Depending on the TextTrack's type, a cue might have different properties.
Modifier and Type | Method and Description |
---|---|
JSONObject |
getContent()
The content of the cue, it depends on the
TextTrack 's TextTrack.getType() . |
double |
getEndTime() |
String |
getId()
The identifier of the cue.
|
double |
getStartTime() |
addEventListener, removeEventListener
String getId()
double getStartTime()
double getEndTime()
JSONObject getContent()
TextTrack
's TextTrack.getType()
.- 'emsg': Content is a Uint8Array representing the binary message data from the 'emsg' box. - 'eventstream': Content is the value of the 'messageData' attribute which was specified in the manifest. - 'ttml': Content is an intermediate TTML document’s body element. This is a view of a TTML document where all nodes in the document are active during the cue’s startTime and endTime. As a result, all begin, dur and end properties have been removed. TTML Styles, Regions and Metadata are stored in cue.styles, cue.regions, cue.metadata respectively. Combining those properties with the given content should suffice to render a TTML cue. - 'webvtt': Content is the cue text in raw unparsed form. - Null when the type is unknown.