video.js
Version:
An HTML5 video player that supports HLS and DASH with a common API and skin.
43 lines • 1.31 kB
TypeScript
export default FullscreenToggle;
/** @import Player from './player' */
/**
* Toggle fullscreen video
*
* @extends Button
*/
declare class FullscreenToggle extends Button {
/**
* 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: document, options?: any);
/**
* Handles fullscreenchange on the player and change control text accordingly.
*
* @param {Event} [event]
* The {@link Player#fullscreenchange} event that caused this function to be
* called.
*
* @listens Player#fullscreenchange
*/
handleFullscreenChange(event?: Event): void;
/**
* This gets called when an `FullscreenToggle` is "clicked". See
* {@link ClickableComponent} for more detailed information on what a click can be.
*
* @param {Event} [event]
* The `keydown`, `tap`, or `click` event that caused this function to be
* called.
*
* @listens tap
* @listens click
*/
handleClick(event?: Event): void;
}
import Button from '../button.js';
//# sourceMappingURL=fullscreen-toggle.d.ts.map