Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HTMLTrackElement

The HTMLTrackElement

interface HTMLTrackElement extends HTMLElement {
default: boolean;
readonly ERROR: number;
kind: string;
label: string;
readonly LOADED: number;
readonly LOADING: number;
readonly NONE: number;
readonly readyState: number;
src: string;
srclang: string;
readonly track: TextTrack;
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
}
var HTMLTrackElement: {
prototype: HTMLTrackElement;
readonly ERROR: number;
readonly LOADED: number;
readonly LOADING: number;
readonly NONE: number;
}
;

§Extends

§Properties

§
default: boolean
[src]
§
readonly ERROR: number
[src]
§
kind: string
[src]
§
label: string
[src]
§
readonly LOADED: number
[src]
§
readonly LOADING: number
[src]
§
readonly NONE: number
[src]
§
readonly readyState: number
[src]
§
src: string
[src]
§
srclang: string
[src]
§
readonly track: TextTrack
[src]

Returns the TextTrack object corresponding to the text track of the track element.

§Methods

§
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]