UNPKG

video.js

Version:

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

38 lines 1.18 kB
export default AudioTrackButton; /** * The base class for buttons that toggle specific {@link AudioTrack} types. * * @extends TrackButton */ declare class AudioTrackButton extends TrackButton { /** * 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. */ constructor(player: Player, options?: any); /** * Create a menu item for each audio track * * @param {AudioTrackMenuItem[]} [items=[]] * An array of existing menu items to use. * * @return {AudioTrackMenuItem[]} * An array of menu items */ createItems(items?: AudioTrackMenuItem[]): AudioTrackMenuItem[]; /** * The text that should display over the `AudioTrackButton`s controls. Added for localization. * * @type {string} * @protected */ protected controlText_: string; } import TrackButton from '../track-button.js'; import AudioTrackMenuItem from './audio-track-menu-item.js'; //# sourceMappingURL=audio-track-button.d.ts.map