video.js
Version:
An HTML5 video player that supports HLS and DASH with a common API and skin.
49 lines • 1.56 kB
TypeScript
export default TextTrackSelect;
/** @import Player from './player' */
/** @import { ContentDescriptor } from '../utils/dom' */
/**
* Creates DOM element of 'select' & its options.
*
* @extends Component
*/
declare class TextTrackSelect extends Component {
/**
* Creates an instance of this class.
*
* @param {Player} player
* The `Player` that this class should be attached to.
*
* @param {Object} [options]
* The key/value store of player options.
*
* @param {ContentDescriptor} [options.content=undefined]
* Provide customized content for this modal.
*
* @param {string} [options.legendId]
* A text with part of an string to create atribute of aria-labelledby.
*
* @param {string} [options.id]
* A text with part of an string to create atribute of aria-labelledby.
*
* @param {Array} [options.SelectOptions]
* Array that contains the value & textContent of for each of the
* options elements.
*/
constructor(player: Player, options?: {
content?: Dom.ContentDescriptor;
legendId?: string;
id?: string;
SelectOptions?: any[];
});
/**
* Create the `TextTrackSelect`'s DOM element
*
* @return {Element}
* The DOM element that gets created.
*/
createEl(): Element;
selectLabelledbyIds: string;
}
import Component from '../component';
import * as Dom from '../utils/dom';
//# sourceMappingURL=text-track-select.d.ts.map