happy-dom
Version:
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
88 lines • 2.31 kB
TypeScript
import EventTarget from '../../event/EventTarget.cjs';
import Event from '../../event/Event.cjs';
import TextTrackCue from './TextTrackCue.cjs';
import TextTrackCueList from './TextTrackCueList.cjs';
import * as PropertySymbol from '../../PropertySymbol.cjs';
import TextTrackKindEnum from './TextTrackKindEnum.cjs';
/**
* TextTrack.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/TextTrack
*/
export default class TextTrack extends EventTarget {
[ ]: TextTrackKindEnum;
[ ]: string;
[ ]: string;
[ ]: string;
[ ]: 'disabled' | 'showing';
[ ]: TextTrackCueList;
[ ]: TextTrackCueList;
oncuechange: (event: Event) => void;
/**
* Constructor.
*
* @param illegalConstructorSymbol Illegal constructor symbol.
*/
constructor(illegalConstructorSymbol: symbol);
/**
* Returns the kind of the text track.
*
* @returns Kind.
*/
get kind(): TextTrackKindEnum;
/**
* Returns the label of the text track.
*
* @returns Label.
*/
get label(): string;
/**
* Returns the language of the text track.
*
* @returns Language.
*/
get language(): string;
/**
* Returns the id of the text track.
*
* @returns Id.
*/
get id(): string;
/**
* Returns the mode of the text track.
*
* @returns Mode.
*/
get mode(): 'disabled' | 'showing';
/**
* Sets the mode of the text track.
*
* @param mode Mode.
*/
set mode(mode: 'disabled' | 'showing');
/**
* Returns the list of cues in the track list.
*
* @returns List of cues.
*/
get cues(): TextTrackCueList | null;
/**
* Returns the list of active cues in the track list.
*
* @returns List of active cues.
*/
get activeCues(): TextTrackCueList | null;
/**
* Adds a cue to the track list.
*
* @param cue Text track cue.
*/
addCue(cue: TextTrackCue): void;
/**
* Removes a cue from the track list.
*
* @param cue Text track cue.
*/
removeCue(cue: TextTrackCue): void;
}
//# sourceMappingURL=TextTrack.d.ts.map