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