softbuilders-react-video-player 1.1.44 → 1.1.46
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ControlBar/index.js +1 -1
- package/dist/components/ControlBar/index.js.map +1 -1
- package/dist/components/ControlBar/index.tsx +6 -1
- package/dist/components/CreateNoteMenu/index.d.ts +2 -1
- package/dist/components/CreateNoteMenu/index.js +2 -2
- package/dist/components/CreateNoteMenu/index.js.map +1 -1
- package/dist/components/CreateNoteMenu/index.tsx +9 -3
- package/dist/components/SubtitleMenu/index.js +1 -1
- package/dist/components/SubtitleMenu/index.js.map +1 -1
- package/dist/components/SubtitleMenu/index.tsx +1 -1
- package/dist/components/VideoPlayerComponent/index.js +5 -7
- package/dist/components/VideoPlayerComponent/index.js.map +1 -1
- package/dist/components/VideoPlayerComponent/index.tsx +4 -8
- package/dist/index.css +3 -0
- package/dist/index.mjs +52 -44
- package/dist/styles/tailwind.css +3 -0
- package/package.json +1 -1
@@ -64,7 +64,7 @@ const ControlBar = ({ player, isPaused, setIsPaused, duration, notes, chapters,
|
|
64
64
|
: { width: "100%" }, className: `flex gap-2 ${width < 400 ? "absolute sb-top-1" : "-sb-translate-y-0 sb-w-full"} hover:sb-w-[45%] sb-transition-all sb-ease-in-out sb-duration-500`, children: [_jsx(CurrentTimeLabel, {}), _jsx(TimeSliderContainer, { chapters: chapters, notes: notes }), _jsx("p", { children: durationFormater(duration) })] }) }), _jsx("div", { className: "sb-h-full", children: _jsx(VolumeSlider, { volumeSliderToggler: volumeSliderToggler, width: width, setIsSeeking: (val) => setIsSeeking(val), handleControlDisplayTimer: handleControlDisplayTimer }) }), _jsx(QualityMenu, { width: width, onClick: (e, isOpen) => {
|
65
65
|
setVolumeToggler(!volumeSliderToggler);
|
66
66
|
setIsQualityMenuOpen && setIsQualityMenuOpen(isOpen);
|
67
|
-
} }), true && _jsx(CreateNoteMenu, { handleSaveNoteAction: handleSaveNoteAction }), _jsx(SubtitleMenu, { width: width, onClick: (e, isOpen) => {
|
67
|
+
} }), true && (_jsx(CreateNoteMenu, { handleSaveNoteAction: handleSaveNoteAction, width: width })), _jsx(SubtitleMenu, { width: width, onClick: (e, isOpen) => {
|
68
68
|
setVolumeToggler(!volumeSliderToggler);
|
69
69
|
setIsSubtitleMenuOpen && setIsSubtitleMenuOpen(isOpen);
|
70
70
|
} }), _jsx("button", { onClick: (e) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ControlBar/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AAKvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,SAAS,EACT,QAAQ,GACT,MAAM,cAAc,CAAC;AAkBtB,MAAM,UAAU,GAAG,CAAK,EACtB,MAAM,EACN,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,GAAG,CAAC,EACZ,EAAE,EACF,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,GACZ,EAAE,EAAE;IACb,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,iCAAiC,EAAE,CAAC;IACvE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAS,CAA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AgB,CAAC,CAAC,mBAAmB,CAAC,CAAC;oBACvC,oBAAoB,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC;gBACvD,CAAC,GACD,EAED,IAAI,IAAI,CACP,KAAC,cAAc,IACb,oBAAoB,EAAE,oBAAoB,EAC1C,KAAK,EAAE,KAAK,GACZ,CACH,EAED,KAAC,YAAY,IACX,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,CAAC,CAAM,EAAE,MAAe,EAAE,EAAE;oBACnC,gBAAgB,CAAC,CAAC,mBAAmB,CAAC,CAAC;oBACvC,qBAAqB,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC;gBACzD,CAAC,GACD,EACF,iBACE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,CAAC,CAAC,eAAe,EAAE,CAAC;oBAEpB,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,EAAE,EAAE,CAAC;wBAC3B,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,cAAc,EAAE,CAAC;oBAC3B,CAAC;yBAAM,CAAC;wBACN,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,iBAAiB,EAAE,CAAC;oBAC9B,CAAC;gBACH,CAAC,YAED,KAAC,cAAc,IAAC,SAAS,EAAC,eAAe,GAAG,GACrC,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
@@ -174,7 +174,12 @@ const ControlBar = <T,>({
|
|
174
174
|
}}
|
175
175
|
/>
|
176
176
|
{/* handleSaveNoteAction */}
|
177
|
-
{true &&
|
177
|
+
{true && (
|
178
|
+
<CreateNoteMenu
|
179
|
+
handleSaveNoteAction={handleSaveNoteAction}
|
180
|
+
width={width}
|
181
|
+
/>
|
182
|
+
)}
|
178
183
|
|
179
184
|
<SubtitleMenu
|
180
185
|
width={width}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
type Props<T> = {
|
2
2
|
handleSaveNoteAction?: (time: number, note: string) => Promise<T>;
|
3
|
+
width: number;
|
3
4
|
};
|
4
|
-
declare const CreateNoteMenu: <T>({ handleSaveNoteAction }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
5
|
+
declare const CreateNoteMenu: <T>({ handleSaveNoteAction, width }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
5
6
|
export default CreateNoteMenu;
|
@@ -3,7 +3,7 @@ import { useState } from "react";
|
|
3
3
|
import MenuButton from "../MenuButton";
|
4
4
|
import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
|
5
5
|
import { ClosedNoteIcon } from "../../images";
|
6
|
-
const CreateNoteMenu = ({ handleSaveNoteAction }) => {
|
6
|
+
const CreateNoteMenu = ({ handleSaveNoteAction, width }) => {
|
7
7
|
const { player } = useSoftBuildersVideoPlayerContext();
|
8
8
|
const [note, setNote] = useState("");
|
9
9
|
const handleSaveNote = () => {
|
@@ -17,7 +17,7 @@ const CreateNoteMenu = ({ handleSaveNoteAction }) => {
|
|
17
17
|
window.alert("Video Player, there is no implementation for the handleSaveNoteAction function");
|
18
18
|
}
|
19
19
|
};
|
20
|
-
return (_jsx(MenuButton, { buttonContent: _jsx(ClosedNoteIcon, { className: "sb-w-3 sb-h-3" }), menuContent: _jsx("div", { className:
|
20
|
+
return (_jsx(MenuButton, { classContainer: `${width < 400 ? "!sb-top-8 -sb-left-[9.75rem]" : ""}`, buttonContent: _jsx(ClosedNoteIcon, { className: "sb-w-3 sb-h-3" }), menuContent: _jsx("div", { className: `sb-rounded-md sb-bg-[#303030] sb-bg-opacity-50 ${width > 400 ? " sb-py-5 sb-w-[220px]" : "sb-py-1 sb-w-[150px]"}`, children: _jsxs("div", { className: "sb-flex sb-flex-col sb-gap-3 sb-items-center sb-justify-center", onClick: (e) => e.stopPropagation(), children: [_jsx("h3", { className: "sb-px-5", children: "Add Note" }), _jsx("div", { className: "sb-w-full sb-h-[.1px] sb-bg-[#AAAAAA] sb-bg-opacity-70" }), _jsxs("div", { className: "sb-px-5 sb-flex sb-flex-col sb-gap-4 sb-items-start", children: [_jsx("input", { onClick: (e) => e.stopPropagation(), name: "note", type: "text", placeholder: "Add a note", value: note, onChange: (e) => setNote(e.target.value), required: true, className: "sb-text-white placeholder:sb-text-white sb-w-full sb-bg-transparent sb-px-4 sb-py-3 sb-border sb-border-[#AAAAAA] sb-rounded-md" }), _jsx("button", { className: "sb-w-full", onClick: handleSaveNote, children: _jsx("div", { className: "sb-px-4 sb-py-3 sb-text-center sb-font-bold sb-bg-orange-500 sb-rounded-md", children: "Save" }) })] })] }) }) }));
|
21
21
|
};
|
22
22
|
export default CreateNoteMenu;
|
23
23
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CreateNoteMenu/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CreateNoteMenu/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAM9C,MAAM,cAAc,GAAG,CAAK,EAAE,oBAAoB,EAAE,KAAK,EAAY,EAAE,EAAE;IACvE,MAAM,EAAE,MAAM,EAAE,GAAG,iCAAiC,EAAE,CAAC;IAEvD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;I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iIAAiI,GAC3I,EAEF,iBAAQ,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,cAAc,YACnD,cAAK,SAAS,EAAC,4EAA4E,qBAErF,GACC,IACL,IACF,GACF,GAER,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
@@ -5,8 +5,9 @@ import { ClosedNoteIcon } from "../../images";
|
|
5
5
|
|
6
6
|
type Props<T> = {
|
7
7
|
handleSaveNoteAction?: (time: number, note: string) => Promise<T>;
|
8
|
+
width: number;
|
8
9
|
};
|
9
|
-
const CreateNoteMenu = <T,>({ handleSaveNoteAction }: Props<T>) => {
|
10
|
+
const CreateNoteMenu = <T,>({ handleSaveNoteAction, width }: Props<T>) => {
|
10
11
|
const { player } = useSoftBuildersVideoPlayerContext();
|
11
12
|
|
12
13
|
const [note, setNote] = useState("");
|
@@ -26,11 +27,16 @@ const CreateNoteMenu = <T,>({ handleSaveNoteAction }: Props<T>) => {
|
|
26
27
|
|
27
28
|
return (
|
28
29
|
<MenuButton
|
30
|
+
classContainer={`${width < 400 ? "!sb-top-8 -sb-left-[9.75rem]" : ""}`}
|
29
31
|
buttonContent={<ClosedNoteIcon className="sb-w-3 sb-h-3" />}
|
30
32
|
menuContent={
|
31
|
-
<div
|
33
|
+
<div
|
34
|
+
className={`sb-rounded-md sb-bg-[#303030] sb-bg-opacity-50 ${
|
35
|
+
width > 400 ? " sb-py-5 sb-w-[220px]" : "sb-py-1 sb-w-[150px]"
|
36
|
+
}`}
|
37
|
+
>
|
32
38
|
<div
|
33
|
-
className="sb-flex sb-flex-col sb-gap-3"
|
39
|
+
className="sb-flex sb-flex-col sb-gap-3 sb-items-center sb-justify-center"
|
34
40
|
onClick={(e) => e.stopPropagation()}
|
35
41
|
>
|
36
42
|
<h3 className="sb-px-5">Add Note</h3>
|
@@ -36,7 +36,7 @@ const SubtitleMenu = ({ width, onClick }) => {
|
|
36
36
|
onClick && onClick(e, isOpen);
|
37
37
|
}, classContainer: `${width < 400 ? "!sb-top-8 -sb-left-9" : ""}`, buttonContent: _jsx(SubIcon, { className: "sb-w-4 sb-h-4 sb-text-white " }), menuContent: _jsx("div", { className: `sb-rounded-md sb-bg-[#303030] sb-bg-opacity-50 ${width > 400
|
38
38
|
? "sb-w-[150px] sb-py-5"
|
39
|
-
: "sb-w-[90px] sb-items-center sb-justify-center sb-py-1"}`, children: _jsxs("div", { className: "sb-flex sb-flex-col sb-gap-3", children: [_jsxs("div", { className: "sb-px-5 sb-flex sb-flex-row sb-gap-3 sb-items-
|
39
|
+
: "sb-w-[90px] sb-items-center sb-justify-center sb-py-1"}`, children: _jsxs("div", { className: "sb-flex sb-flex-col sb-gap-3", children: [_jsxs("div", { className: "sb-px-5 sb-flex sb-flex-row sb-gap-3 sb-items-center sb-justify-center", children: [_jsx("button", { onClick: () => {
|
40
40
|
if (closeMenuFunction) {
|
41
41
|
closeMenuFunction();
|
42
42
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SubtitleMenu/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAOnE,MAAM,cAAc,GAAG,CAAC,EACtB,UAAU,EACV,QAAQ,EACR,OAAO,GACa,EAAE,EAAE;IACxB,OAAO,CACL,iBACE,SAAS,EAAC,iCAAiC,EAC3C,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE;YAClB,CAAC,CAAC,eAAe,EAAE,CAAC;YACpB,OAAO,CAAC,CAAC,CAAC,CAAC;QACb,CAAC,YAED,eAAK,SAAS,EAAC,kDAAkD,aAC/D,cAAK,SAAS,EAAC,eAAe,YAC3B,UAAU,CAA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BAA8B,GAAG,EACnE,WAAW,EACT,cACE,SAAS,EAAE,kDACT,KAAK,GAAG,GAAG;gBACT,CAAC,CAAC,sBAAsB;gBACxB,CAAC,CAAC,uDACN,EAAE,YAEF,eAAK,SAAS,EAAC,8BAA8B,aAC3C,eAAK,SAAS,EAAC,wEAAwE,aACrF,iBACE,OAAO,EAAE,GAAG,EAAE;oCACZ,IAAI,iBAAiB,EAAE,CAAC;wCACtB,iBAAiB,EAAE,CAAC;oCACtB,CAAC;gCACH,CAAC,EACD,SAAS,EAAC,oBAAoB,YAE9B,KAAC,aAAa,IAAC,SAAS,EAAC,eAAe,GAAG,GACpC,EACT,oCAAiB,IACb,EAEN,cAAK,SAAS,EAAC,wDAAwD,GAAG,EAE1E,cAAK,SAAS,EAAC,sDAAsD,YAClE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;4BACtB,OAAO,CACL,KAAC,cAAc,IAEb,UAAU,EAAE,CAAC,CAAC,IAAI,KAAK,SAAS,EAChC,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,GAAG,EAAE;oCACZ,oBAAoB,CAAC,CAAC,CAAC,CAAC;gCAC1B,CAAC,IALI,YAAY,CAAC,CAAC,KAAK,IAAI,CAAC,EAAE,CAM/B,CACH,CAAC;wBACJ,CAAC,CAAC,GACE,IACF,GACF,EAER,KAAK,EAAE,CAAC,EAAY,EAAE,EAAE;YACtB,oBAAoB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QACjC,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -83,7 +83,7 @@ const SubtitleMenu = ({ width, onClick }: SubtitleMenuProps) => {
|
|
83
83
|
}`}
|
84
84
|
>
|
85
85
|
<div className="sb-flex sb-flex-col sb-gap-3">
|
86
|
-
<div className="sb-px-5 sb-flex sb-flex-row sb-gap-3 sb-items-
|
86
|
+
<div className="sb-px-5 sb-flex sb-flex-row sb-gap-3 sb-items-center sb-justify-center">
|
87
87
|
<button
|
88
88
|
onClick={() => {
|
89
89
|
if (closeMenuFunction) {
|
@@ -44,7 +44,7 @@ const renderControlBar = (id, player, isPaused, setIsPaused, duration, notes, ch
|
|
44
44
|
}
|
45
45
|
};
|
46
46
|
const VideoPlayerComponent = ({ id, options, notes, chapters, startTime = 0, handleSaveNoteAction, poster, onPlay, onPause, }) => {
|
47
|
-
var _a
|
47
|
+
var _a;
|
48
48
|
const videoRef = useRef(undefined);
|
49
49
|
const playerRef = useRef(undefined);
|
50
50
|
const [isReady, setIsReady] = useState(false);
|
@@ -258,7 +258,6 @@ const VideoPlayerComponent = ({ id, options, notes, chapters, startTime = 0, han
|
|
258
258
|
}
|
259
259
|
};
|
260
260
|
}, []);
|
261
|
-
console.log((_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(), "player");
|
262
261
|
const [timeSeeker, setTimeSeeker] = useState("0");
|
263
262
|
useEffect(() => {
|
264
263
|
const updateTimeSeeker = () => {
|
@@ -276,11 +275,10 @@ const VideoPlayerComponent = ({ id, options, notes, chapters, startTime = 0, han
|
|
276
275
|
}
|
277
276
|
};
|
278
277
|
updateTimeSeeker();
|
279
|
-
}, [(
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
return (_jsx("div", { ref: videoRefs, id: `video-container-${id}`, className: "sb-relative sb-rounded-md sb-overflow-hidden sb-w-full sb-h-full ", onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false), 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: {
|
278
|
+
}, [(_a = playerRef === null || playerRef === void 0 ? void 0 : playerRef.current) === null || _a === void 0 ? void 0 : _a.currentTime()]);
|
279
|
+
return (_jsx("div", { ref: videoRefs, id: `video-container-${id}`, onMouseMove: () => {
|
280
|
+
handlePlayerClick(event, true);
|
281
|
+
}, className: "sb-relative sb-rounded-md sb-overflow-hidden sb-w-full sb-h-full ", onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false), 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: {
|
284
282
|
width: timeSeeker,
|
285
283
|
} }), _jsx("div", { onClick: handlePlayerClick, ref: videoRef, className: "sb-h-full sb-w-full" })] }) }));
|
286
284
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/VideoPlayerComponent/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,OAAO,MAAM,UAAU,CAAC;AAE/B,OAAO,4BAA4B,CAAC;AACpC,OAAO,UAAU,MAAM,eAAe,CAAC;AAMvC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,IAAI,iBAAiB,GAEjB,EAAE,CAAC;AACP,MAAM,mBAAmB,GAAG,CAC1B,EAAU,EACV,MAA0B,EAC1B,QAAiB,EACjB,WAA0D,EAC1D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E,EAC3B,WAAW,EAAE,GAAG,EAAE;YAChB,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACjC,CAAC,EACD,SAAS,EAAC,mEAAmE,EAC7E,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EACtC,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,YAEvC,eACE,SAAS,EAAC,6CAA6C,sCAIvD,cACE,SAAS,EAAE,+IACT,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,gBACtC,EAAE,EACF,KAAK,EAAE;wBACL,KAAK,EAAE,UAAU;qBAClB,GACI,EAEP,cACE,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,QAAQ,EACb,SAAS,EAAC,qBAAqB,GAC/B,IACE,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,oBAAoB,CAAC"}
|
@@ -355,11 +355,7 @@ const VideoPlayerComponent = <T,>({
|
|
355
355
|
}
|
356
356
|
};
|
357
357
|
}, []);
|
358
|
-
|
359
|
-
playerRef?.current?.currentTime(),
|
360
|
-
playerRef?.current?.duration(),
|
361
|
-
"player"
|
362
|
-
);
|
358
|
+
|
363
359
|
const [timeSeeker, setTimeSeeker] = useState<string>("0");
|
364
360
|
useEffect(() => {
|
365
361
|
const updateTimeSeeker = () => {
|
@@ -377,14 +373,14 @@ const VideoPlayerComponent = <T,>({
|
|
377
373
|
};
|
378
374
|
updateTimeSeeker();
|
379
375
|
}, [playerRef?.current?.currentTime()]);
|
380
|
-
document.addEventListener("mousemove", (event) => {
|
381
|
-
handlePlayerClick(event, true);
|
382
|
-
});
|
383
376
|
|
384
377
|
return (
|
385
378
|
<div
|
386
379
|
ref={videoRefs}
|
387
380
|
id={`video-container-${id}`}
|
381
|
+
onMouseMove={() => {
|
382
|
+
handlePlayerClick(event, true);
|
383
|
+
}}
|
388
384
|
className="sb-relative sb-rounded-md sb-overflow-hidden sb-w-full sb-h-full "
|
389
385
|
onMouseEnter={() => setIsHovered(true)}
|
390
386
|
onMouseLeave={() => setIsHovered(false)}
|
package/dist/index.css
CHANGED
package/dist/index.mjs
CHANGED
@@ -617,8 +617,8 @@ var MenuButton = ({
|
|
617
617
|
setIsOpen(false);
|
618
618
|
}, []);
|
619
619
|
useEffect3(() => {
|
620
|
-
const handleClickOutside = (
|
621
|
-
if (buttonRef.current && !buttonRef.current.contains(
|
620
|
+
const handleClickOutside = (event2) => {
|
621
|
+
if (buttonRef.current && !buttonRef.current.contains(event2.target) && menuRef.current && !menuRef.current.contains(event2.target)) {
|
622
622
|
setIsOpen(false);
|
623
623
|
}
|
624
624
|
};
|
@@ -777,7 +777,7 @@ var QualityMenu_default = QualityMenu;
|
|
777
777
|
// src/components/CreateNoteMenu/index.tsx
|
778
778
|
import { useState as useState5 } from "react";
|
779
779
|
import { jsx as jsx22, jsxs as jsxs7 } from "react/jsx-runtime";
|
780
|
-
var CreateNoteMenu = ({ handleSaveNoteAction }) => {
|
780
|
+
var CreateNoteMenu = ({ handleSaveNoteAction, width }) => {
|
781
781
|
const { player } = useSoftBuildersVideoPlayerContext();
|
782
782
|
const [note, setNote] = useState5("");
|
783
783
|
const handleSaveNote = () => {
|
@@ -795,34 +795,41 @@ var CreateNoteMenu = ({ handleSaveNoteAction }) => {
|
|
795
795
|
return /* @__PURE__ */ jsx22(
|
796
796
|
MenuButton_default,
|
797
797
|
{
|
798
|
+
classContainer: `${width < 400 ? "!sb-top-8 -sb-left-[9.75rem]" : ""}`,
|
798
799
|
buttonContent: /* @__PURE__ */ jsx22(ClosedNoteIcon_default, { className: "sb-w-3 sb-h-3" }),
|
799
|
-
menuContent: /* @__PURE__ */ jsx22(
|
800
|
+
menuContent: /* @__PURE__ */ jsx22(
|
800
801
|
"div",
|
801
802
|
{
|
802
|
-
className: "sb-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
"
|
810
|
-
{
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
803
|
+
className: `sb-rounded-md sb-bg-[#303030] sb-bg-opacity-50 ${width > 400 ? " sb-py-5 sb-w-[220px]" : "sb-py-1 sb-w-[150px]"}`,
|
804
|
+
children: /* @__PURE__ */ jsxs7(
|
805
|
+
"div",
|
806
|
+
{
|
807
|
+
className: "sb-flex sb-flex-col sb-gap-3 sb-items-center sb-justify-center",
|
808
|
+
onClick: (e) => e.stopPropagation(),
|
809
|
+
children: [
|
810
|
+
/* @__PURE__ */ jsx22("h3", { className: "sb-px-5", children: "Add Note" }),
|
811
|
+
/* @__PURE__ */ jsx22("div", { className: "sb-w-full sb-h-[.1px] sb-bg-[#AAAAAA] sb-bg-opacity-70" }),
|
812
|
+
/* @__PURE__ */ jsxs7("div", { className: "sb-px-5 sb-flex sb-flex-col sb-gap-4 sb-items-start", children: [
|
813
|
+
/* @__PURE__ */ jsx22(
|
814
|
+
"input",
|
815
|
+
{
|
816
|
+
onClick: (e) => e.stopPropagation(),
|
817
|
+
name: "note",
|
818
|
+
type: "text",
|
819
|
+
placeholder: "Add a note",
|
820
|
+
value: note,
|
821
|
+
onChange: (e) => setNote(e.target.value),
|
822
|
+
required: true,
|
823
|
+
className: "sb-text-white placeholder:sb-text-white sb-w-full sb-bg-transparent sb-px-4 sb-py-3 sb-border sb-border-[#AAAAAA] sb-rounded-md"
|
824
|
+
}
|
825
|
+
),
|
826
|
+
/* @__PURE__ */ jsx22("button", { className: "sb-w-full", onClick: handleSaveNote, children: /* @__PURE__ */ jsx22("div", { className: "sb-px-4 sb-py-3 sb-text-center sb-font-bold sb-bg-orange-500 sb-rounded-md", children: "Save" }) })
|
827
|
+
] })
|
828
|
+
]
|
829
|
+
}
|
830
|
+
)
|
824
831
|
}
|
825
|
-
)
|
832
|
+
)
|
826
833
|
}
|
827
834
|
);
|
828
835
|
};
|
@@ -1160,7 +1167,7 @@ var SubtitleMenu = ({ width, onClick }) => {
|
|
1160
1167
|
{
|
1161
1168
|
className: `sb-rounded-md sb-bg-[#303030] sb-bg-opacity-50 ${width > 400 ? "sb-w-[150px] sb-py-5" : "sb-w-[90px] sb-items-center sb-justify-center sb-py-1"}`,
|
1162
1169
|
children: /* @__PURE__ */ jsxs12("div", { className: "sb-flex sb-flex-col sb-gap-3", children: [
|
1163
|
-
/* @__PURE__ */ jsxs12("div", { className: "sb-px-5 sb-flex sb-flex-row sb-gap-3 sb-items-
|
1170
|
+
/* @__PURE__ */ jsxs12("div", { className: "sb-px-5 sb-flex sb-flex-row sb-gap-3 sb-items-center sb-justify-center", children: [
|
1164
1171
|
/* @__PURE__ */ jsx32(
|
1165
1172
|
"button",
|
1166
1173
|
{
|
@@ -1318,7 +1325,13 @@ var ControlBar = ({
|
|
1318
1325
|
}
|
1319
1326
|
}
|
1320
1327
|
),
|
1321
|
-
/* @__PURE__ */ jsx33(
|
1328
|
+
/* @__PURE__ */ jsx33(
|
1329
|
+
CreateNoteMenu_default,
|
1330
|
+
{
|
1331
|
+
handleSaveNoteAction,
|
1332
|
+
width
|
1333
|
+
}
|
1334
|
+
),
|
1322
1335
|
/* @__PURE__ */ jsx33(
|
1323
1336
|
SubtitleMenu_default,
|
1324
1337
|
{
|
@@ -1445,7 +1458,7 @@ var VideoPlayerComponent = ({
|
|
1445
1458
|
onPlay,
|
1446
1459
|
onPause
|
1447
1460
|
}) => {
|
1448
|
-
var _a
|
1461
|
+
var _a;
|
1449
1462
|
const videoRef = useRef2(void 0);
|
1450
1463
|
const playerRef = useRef2(void 0);
|
1451
1464
|
const [isReady, setIsReady] = useState13(false);
|
@@ -1645,11 +1658,11 @@ var VideoPlayerComponent = ({
|
|
1645
1658
|
const observer = new IntersectionObserver(
|
1646
1659
|
(entries) => {
|
1647
1660
|
entries.forEach((entry) => {
|
1648
|
-
var _a2,
|
1661
|
+
var _a2, _b;
|
1649
1662
|
if (entry.isIntersecting === false) {
|
1650
1663
|
if (((_a2 = playerRef == null ? void 0 : playerRef.current) == null ? void 0 : _a2.paused()) === false) {
|
1651
1664
|
try {
|
1652
|
-
(
|
1665
|
+
(_b = playerRef == null ? void 0 : playerRef.current) == null ? void 0 : _b.pause();
|
1653
1666
|
setIsPaused(true);
|
1654
1667
|
} catch (error) {
|
1655
1668
|
console.error("Failed to play video:", error);
|
@@ -1672,18 +1685,13 @@ var VideoPlayerComponent = ({
|
|
1672
1685
|
}
|
1673
1686
|
};
|
1674
1687
|
}, []);
|
1675
|
-
console.log(
|
1676
|
-
(_a = playerRef == null ? void 0 : playerRef.current) == null ? void 0 : _a.currentTime(),
|
1677
|
-
(_b = playerRef == null ? void 0 : playerRef.current) == null ? void 0 : _b.duration(),
|
1678
|
-
"player"
|
1679
|
-
);
|
1680
1688
|
const [timeSeeker, setTimeSeeker] = useState13("0");
|
1681
1689
|
useEffect14(() => {
|
1682
1690
|
const updateTimeSeeker = () => {
|
1683
|
-
var _a2,
|
1691
|
+
var _a2, _b, _c, _d;
|
1684
1692
|
if (playerRef == null ? void 0 : playerRef.current) {
|
1685
|
-
const currentTime = (
|
1686
|
-
const duration2 = (_d = (
|
1693
|
+
const currentTime = (_b = (_a2 = playerRef.current) == null ? void 0 : _a2.currentTime) == null ? void 0 : _b.call(_a2);
|
1694
|
+
const duration2 = (_d = (_c = playerRef.current) == null ? void 0 : _c.duration) == null ? void 0 : _d.call(_c);
|
1687
1695
|
if (duration2 && currentTime !== void 0) {
|
1688
1696
|
const value = `${currentTime / duration2 * 100}%`;
|
1689
1697
|
setTimeSeeker(value);
|
@@ -1693,15 +1701,15 @@ var VideoPlayerComponent = ({
|
|
1693
1701
|
}
|
1694
1702
|
};
|
1695
1703
|
updateTimeSeeker();
|
1696
|
-
}, [(
|
1697
|
-
document.addEventListener("mousemove", (event) => {
|
1698
|
-
handlePlayerClick(event, true);
|
1699
|
-
});
|
1704
|
+
}, [(_a = playerRef == null ? void 0 : playerRef.current) == null ? void 0 : _a.currentTime()]);
|
1700
1705
|
return /* @__PURE__ */ jsx35(
|
1701
1706
|
"div",
|
1702
1707
|
{
|
1703
1708
|
ref: videoRefs,
|
1704
1709
|
id: `video-container-${id}`,
|
1710
|
+
onMouseMove: () => {
|
1711
|
+
handlePlayerClick(event, true);
|
1712
|
+
},
|
1705
1713
|
className: "sb-relative sb-rounded-md sb-overflow-hidden sb-w-full sb-h-full ",
|
1706
1714
|
onMouseEnter: () => setIsHovered(true),
|
1707
1715
|
onMouseLeave: () => setIsHovered(false),
|
package/dist/styles/tailwind.css
CHANGED