feat: release v0.0.1

This commit is contained in:
2026-02-27 09:50:13 +03:00
parent ed30903f96
commit 8f2c799235
321 changed files with 23986 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
import videojs from "video.js";
const BigPlayButton = videojs.getComponent("BigPlayButton");
class BigPlayPauseButton extends BigPlayButton {
handleClick() {
const player = this.player();
if (player.paused()) {
player.play();
}
else {
player.pause();
}
}
}
videojs.registerComponent("BigPlayPauseButton", BigPlayPauseButton);
// Функция плагина с аннотацией типа this
function bigPlayPauseButtonPlugin() {
const player = this;
const defaultButton = player.getChild("bigPlayButton");
if (defaultButton) {
defaultButton.dispose();
}
player.addChild("BigPlayPauseButton", {});
}
videojs.registerPlugin("bigPlayPauseButton", bigPlayPauseButtonPlugin);
export default bigPlayPauseButtonPlugin;
//# sourceMappingURL=big-play-pause-button.js.map