UNPKG

video.js

Version:

An HTML5 video player that supports HLS and DASH with a common API and skin.

56 lines 1.59 kB
export default DescriptionsButton; /** @import Player from '../../player' */ /** * The button component for toggling and selecting descriptions * * @extends TextTrackButton */ declare class DescriptionsButton extends TextTrackButton { /** * 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 {Function} [ready] * The function to call when this component is ready. */ constructor(player: Player, options?: any, ready?: Function); /** * Handle text track change * * @param {Event} event * The event that caused this function to run * * @listens TextTrackList#change */ handleTracksChange(event: Event): void; /** * Builds the default DOM `className`. * * @return {string} * The DOM `className` for this object. */ buildCSSClass(): string; buildWrapperCSSClass(): string; /** * `kind` of TextTrack to look for to associate it with this menu. * * @type {string} * @private */ private kind_; /** * The text that should display over the `DescriptionsButton`s controls. Added for localization. * * @type {string} * @protected */ protected controlText_: string; } import TextTrackButton from './text-track-button.js'; import type Player from '../../player'; //# sourceMappingURL=descriptions-button.d.ts.map