Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ogone/src/ogone.dom.d.ts>TextTrackList

Advanced Web Composition for Future
Latest
interface TextTrackList
implements EventTarget
import { type TextTrackList } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";

Index Signatures

[index: number]: TextTrack

Properties

readonly
length: number
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>(
type: K,
listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
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