interface dom.AudioTrackList
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/index.ts";
const { AudioTrackList } = dom;
Used to represent a list of the audio tracks contained within a given HTML media element, with each track represented by a separate AudioTrack object in the list.
Index Signatures
index: number]: AudioTrack
[Properties
onaddtrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null
onchange: ((this: AudioTrackList, ev: Event) => any) | null
onremovetrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null
Methods
getTrackById(id: string): AudioTrack | null
item(index: number): AudioTrack
addEventListener<K extends keyof AudioTrackListEventMap>(): void
type: K,
listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof AudioTrackListEventMap>(): void
type: K,
listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any,
options?: boolean | EventListenerOptions,