TextTrackList
interface TextTrackList extends EventTarget {
[index: number]: TextTrack;
readonly length: number;
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
onchange: ((this: TextTrackList, ev: Event) => any) | null;
onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
[[Symbol.iterator]](): IterableIterator<TextTrack>;
addEventListener<K extends keyof TextTrackListEventMap>(
type: K,
listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;getTrackById(id: string): TextTrack | null;
removeEventListener<K extends keyof TextTrackListEventMap>(
type: K,
listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
}type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;var TextTrackList: {
prototype: TextTrackList;
new (): TextTrackList;
};§Extends
§Properties
§
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null
[src]§
onchange: ((this: TextTrackList, ev: Event) => any) | null
[src]§
onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null
[src]§Methods
§
addEventListener<K extends keyof TextTrackListEventMap>(
[src]type: K,
listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof TextTrackListEventMap>(
[src]type: K,
listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void