Definition
HTML Standard defines TextTrack
[Exposed=Window]
interface TextTrack : EventTarget {
readonly attribute TextTrackKind kind;
readonly attribute DOMString label;
readonly attribute DOMString language;
readonly attribute DOMString id;
readonly attribute DOMString inBandMetadataTrackDispatchType;
attribute TextTrackMode mode;
readonly attribute TextTrackCueList? cues;
readonly attribute TextTrackCueList? activeCues;
undefined addCue(TextTrackCue cue);
undefined removeCue(TextTrackCue cue);
attribute EventHandler oncuechange;
};
This interface is extended in the following specifications:
- Media Source Extensions™
[Exposed=(Window,DedicatedWorker)] partial interface TextTrack { readonly attribute SourceBuffer? sourceBuffer; };
Consolidated IDL (across mixin and partials)
[Exposed=Window]
interface TextTrack : EventTarget {
readonly attribute TextTrackKind kind;
readonly attribute DOMString label;
readonly attribute DOMString language;
readonly attribute DOMString id;
readonly attribute DOMString inBandMetadataTrackDispatchType;
attribute TextTrackMode mode;
readonly attribute TextTrackCueList? cues;
readonly attribute TextTrackCueList? activeCues;
undefined addCue(TextTrackCue cue);
undefined removeCue(TextTrackCue cue);
attribute EventHandler oncuechange;
readonly attribute SourceBuffer? sourceBuffer;
};
Methods and attributes that return objects implementing TextTrack
Referring IDL interfaces/dictionaries
Referring specifications
- Media Source Extensions™ refers to
TextTrack