Installation
npm install --save @types/videojs-seek-buttons
Summary
This package contains type definitions for videojs-seek-buttons (https://github.com/mister-ben/videojs-seek-buttons#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/videojs-seek-buttons.
import videojs from "video.js";
declare function seekButtons(options?: seekButtons.Options): void;
declare namespace seekButtons {
const VERSION: typeof videojs.VERSION;
interface SeekButtonOptions {
direction: "forward" | "back";
seconds: number;
}
class SeekButton extends videojs.Button {
constructor(player: videojs.Player, options?: SeekButtonOptions);
buildCSSClass(): string;
handleClick(): void;
}
interface Options {
forward?: number | undefined;
back?: number | undefined;
forwardIndex?: number | undefined;
backIndex?: number | undefined;
}
}
export = seekButtons;
declare module "video.js" {
interface VideoJsPlayer {
seekButtons: typeof seekButtons;
}
interface VideoJsPlayerPluginOptions {
seekButtons?: seekButtons.Options;
}
}
Additional Details
Credits
These definitions were written by Piotr Błażejewicz.