Skip to main content
Module

x/evt/lib/types/lib.dom.ts>AudioTrackList

💧EventEmitter's typesafe replacement
Go to Latest
interface AudioTrackList
implements EventTarget
import { type AudioTrackList } from "https://deno.land/x/evt@v2.4.13/lib/types/lib.dom.ts";

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.

Properties

readonly
length: number
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>(
type: K,
listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof AudioTrackListEventMap>(
type: K,
listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void