Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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,
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,
options?: boolean | EventListenerOptions,
): void;
}
var TextTrackList: {
prototype: TextTrackList;
new (): TextTrackList;
}
;

§Extends

§Index Signatures

§
[index: number]: TextTrack

§Properties

§
readonly length: number
[src]
§
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

§
[[Symbol.iterator]](): IterableIterator<TextTrack>
[src]
§
addEventListener<K extends keyof TextTrackListEventMap>(
type: K,
listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
getTrackById(id: string): TextTrack | null
[src]
§
removeEventListener<K extends keyof TextTrackListEventMap>(
type: K,
listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]