interface VideoTrackList
implements EventTarget
import { type VideoTrackList } from "https://deno.land/x/evt@v2.4.13/lib/types/lib.dom.ts";
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,