interface dom.TextTrack
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.4.7/lib/index.ts";
const { TextTrack } = dom;
This interface also inherits properties from EventTarget.
Properties
readonly
activeCues: TextTrackCueListreadonly
cues: TextTrackCueListmode: TextTrackMode | number
readonly
sourceBuffer: SourceBuffer | nullMethods
addCue(cue: TextTrackCue): void
removeCue(cue: TextTrackCue): void
addEventListener<K extends keyof TextTrackEventMap>(): void
type: K,
listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof TextTrackEventMap>(): void
type: K,
listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any,
options?: boolean | EventListenerOptions,