Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@types/videojs-seek-buttons
Advanced tools
Readme
npm install --save @types/videojs-seek-buttons
This package contains type definitions for videojs-seek-buttons (https://github.com/mister-ben/videojs-seek-buttons#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/videojs-seek-buttons.
// eslint-disable-next-line @definitelytyped/no-import-default-of-export-equals
import videojs from "video.js";
/**
* A video.js plugin.
*
* In the plugin function, the value of `this` is a video.js `Player`
* instance. You cannot rely on the player being in a "ready" state here,
* depending on how the plugin is invoked. This may or may not be important
* to you; if not, remove the wait for "ready"!
*
* @param [options={}]
* An object of options left to the plugin author to define.
*/
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 for class
*
* @param player The player
* @param options Button options
*/
constructor(player: videojs.Player, options?: SeekButtonOptions);
/**
* Return button class names which include the seek amount.
*
* @return css class string
*/
buildCSSClass(): string;
/**
* Seek with the button's configured offset
*/
handleClick(): void;
}
interface Options {
/**
* if a number greater than 0, a seek forward button will be added which seeks that number of seconds
*/
forward?: number | undefined;
/**
* if a number greater than 0, a seek back button will be added which seeks that number of seconds
*/
back?: number | undefined;
/**
* the position in the control bar to insert the button.
* @default 1
*/
forwardIndex?: number | undefined;
/**
* the position in the control bar to insert the button
* @default 1
*/
backIndex?: number | undefined;
}
}
export = seekButtons;
declare module "video.js" {
interface VideoJsPlayer {
seekButtons: typeof seekButtons;
}
interface VideoJsPlayerPluginOptions {
seekButtons?: seekButtons.Options;
}
}
These definitions were written by Piotr Błażejewicz.
FAQs
TypeScript definitions for videojs-seek-buttons
The npm package @types/videojs-seek-buttons receives a total of 1,662 weekly downloads. As such, @types/videojs-seek-buttons popularity was classified as popular.
We found that @types/videojs-seek-buttons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.