TextTrackCue
TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used.
interface TextTrackCue extends EventTarget {
endTime: number;
id: string;
onenter: ((this: TextTrackCue, ev: Event) => any) | null;
onexit: ((this: TextTrackCue, ev: Event) => any) | null;
pauseOnExit: boolean;
startTime: number;
readonly track: TextTrack | null;
addEventListener<K extends keyof TextTrackCueEventMap>(
type: K,
listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;removeEventListener<K extends keyof TextTrackCueEventMap>(
type: K,
listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
}type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;var TextTrackCue: {
prototype: TextTrackCue;
new (): TextTrackCue;
};§Extends
§Properties
§
onenter: ((this: TextTrackCue, ev: Event) => any) | null
[src]§
onexit: ((this: TextTrackCue, ev: Event) => any) | null
[src]§Methods
§
addEventListener<K extends keyof TextTrackCueEventMap>(
[src]type: K,
listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof TextTrackCueEventMap>(
[src]type: K,
listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void