Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

softbuilders-react-video-player

Package Overview
Dependencies
Maintainers
0
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

softbuilders-react-video-player - npm Package Compare versions

Comparing version 1.1.37 to 1.1.38

4

dist/components/ControlBar/index.d.ts

@@ -15,6 +15,6 @@ import React from "react";

handleControlDisplayTimer: (e: any) => void;
setIsQualityMenuOpen: (val: boolean) => void;
setIsSubtitleMenuOpen: (val: boolean) => void;
setIsQualityMenuOpen?: (val: boolean) => void;
setIsSubtitleMenuOpen?: (val: boolean) => void;
};
declare const ControlBar: <T>({ player, isPaused, setIsPaused, duration, notes, chapters, seekStep, id, handleSaveNoteAction, handleControlDisplayTimer, setIsQualityMenuOpen, setIsSubtitleMenuOpen, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
export default ControlBar;

@@ -66,6 +66,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";

setVolumeToggler(!volumeSliderToggler);
setIsQualityMenuOpen(isOpen);
setIsQualityMenuOpen && setIsQualityMenuOpen(isOpen);
} }), handleSaveNoteAction && (_jsx(CreateNoteMenu, { handleSaveNoteAction: handleSaveNoteAction })), _jsx(SubtitleMenu, { width: width, onClick: (e, isOpen) => {
setVolumeToggler(!volumeSliderToggler);
setIsSubtitleMenuOpen(isOpen);
setIsSubtitleMenuOpen && setIsSubtitleMenuOpen(isOpen);
} }), _jsx("button", { onClick: (e) => {

@@ -72,0 +72,0 @@ e.preventDefault();

@@ -263,5 +263,16 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";

useEffect(() => {
var _a, _b;
let value = `${(((_a = playerRef === null || playerRef === void 0 ? void 0 : playerRef.current) === null || _a === void 0 ? void 0 : _a.currentTime()) / ((_b = playerRef === null || playerRef === void 0 ? void 0 : playerRef.current) === null || _b === void 0 ? void 0 : _b.duration())) * 100}%`;
setTimeSeeker(value);
const updateTimeSeeker = () => {
var _a, _b, _c, _d;
if (playerRef === null || playerRef === void 0 ? void 0 : playerRef.current) {
const currentTime = (_b = (_a = playerRef.current) === null || _a === void 0 ? void 0 : _a.currentTime) === null || _b === void 0 ? void 0 : _b.call(_a);
const duration = (_d = (_c = playerRef.current) === null || _c === void 0 ? void 0 : _c.duration) === null || _d === void 0 ? void 0 : _d.call(_c);
if (duration && currentTime !== undefined) {
const value = `${(currentTime / duration) * 100}%`;
setTimeSeeker(value);
}
else {
setTimeSeeker("0");
}
}
};
}, [(_c = playerRef === null || playerRef === void 0 ? void 0 : playerRef.current) === null || _c === void 0 ? void 0 : _c.currentTime()]);

@@ -268,0 +279,0 @@ return (_jsx("div", { ref: videoRefs, id: `video-container-${id}`, className: "sb-relative sb-rounded-md sb-overflow-hidden sb-w-full sb-h-full ", children: _jsxs("div", { className: "hover:sb-cursor-pointer sb-w-full sb-h-full", "data-vjs-player": true, children: [_jsx("div", { className: `sb-h-[3px] sb-transition- sb-duration-500 sb-delay-400 sb-z-10 ease-in-out sb-border-spacing-x-2 sb-absolute sb-bg-[red] -sb-bottom-[1.5px] ${opacity == "100" ? "sb-opacity-0" : "sb-opacity-100"}`, style: {

{
"name": "softbuilders-react-video-player",
"description": "Standalone video player component",
"version": "1.1.37",
"version": "1.1.38",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "types": "dist/index.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc