video.js
Version:
An HTML5 video player that supports HLS and DASH with a common API and skin.
67 lines • 1.95 kB
TypeScript
export default HTMLTrackElement;
/** @import Tech from '../tech/tech' */
/**
* A single track represented in the DOM.
*
* @see [Spec]{@link https://html.spec.whatwg.org/multipage/embedded-content.html#htmltrackelement}
* @extends EventTarget
*/
declare class HTMLTrackElement extends EventTarget {
/**
* Create an instance of this class.
*
* @param {Object} options={}
* Object of option names and values
*
* @param {Tech} options.tech
* A reference to the tech that owns this HTMLTrackElement.
*
* @param {TextTrack~Kind} [options.kind='subtitles']
* A valid text track kind.
*
* @param {TextTrack~Mode} [options.mode='disabled']
* A valid text track mode.
*
* @param {string} [options.id='vjs_track_' + Guid.newGUID()]
* A unique id for this TextTrack.
*
* @param {string} [options.label='']
* The menu label for this track.
*
* @param {string} [options.language='']
* A valid two character language code.
*
* @param {string} [options.srclang='']
* A valid two character language code. An alternative, but deprioritized
* version of `options.language`
*
* @param {string} [options.src]
* A url to TextTrack cues.
*
* @param {boolean} [options.default]
* If this track should default to on or off.
*/
constructor(options?: {
tech: Tech;
});
kind: any;
src: any;
srclang: any;
label: any;
default: any;
/**
* @protected
*/
protected allowedEvents_: {
load: string;
};
}
declare namespace HTMLTrackElement {
let NONE: number;
let LOADING: number;
let LOADED: number;
let ERROR: number;
}
import EventTarget from '../event-target';
import type Tech from '../tech/tech';
//# sourceMappingURL=html-track-element.d.ts.map