interface TextTrackList
implements EventTarget
import { type TextTrackList } from "https://deno.land/x/yxz@0.32.0/typing/lib.dom.ts";
Index Signatures
index: number]: TextTrack
[Properties
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null
onchange: ((this: TextTrackList, ev: Event) => any) | null
onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null
Methods
getTrackById(id: string): TextTrack | null
addEventListener<K extends keyof TextTrackListEventMap>(): void
type: K,
listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof TextTrackListEventMap>(): void
type: K,
listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any,
options?: boolean | EventListenerOptions,