softbuilders-react-video-player 1.1.48 → 1.1.50
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ControlBar/index.d.ts +2 -1
- package/dist/components/ControlBar/index.js +2 -2
- package/dist/components/ControlBar/index.js.map +1 -1
- package/dist/components/ControlBar/index.tsx +3 -1
- package/dist/components/QualityMenu/index.js +0 -1
- package/dist/components/QualityMenu/index.js.map +1 -1
- package/dist/components/QualityMenu/index.tsx +0 -1
- package/dist/components/SoftBuildersVideoPlayer/index.d.ts +2 -1
- package/dist/components/SoftBuildersVideoPlayer/index.js +2 -2
- package/dist/components/SoftBuildersVideoPlayer/index.js.map +1 -1
- package/dist/components/SoftBuildersVideoPlayer/index.tsx +3 -0
- package/dist/components/VideoPlayerComponent/index.d.ts +2 -1
- package/dist/components/VideoPlayerComponent/index.js +4 -4
- package/dist/components/VideoPlayerComponent/index.js.map +1 -1
- package/dist/components/VideoPlayerComponent/index.tsx +7 -2
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +13 -8
- package/package.json +1 -1
@@ -14,6 +14,7 @@ type Props<T> = {
|
|
14
14
|
handleControlDisplayTimer: (e: any) => void;
|
15
15
|
setIsQualityMenuOpen?: (val: boolean) => void;
|
16
16
|
setIsSubtitleMenuOpen?: (val: boolean) => void;
|
17
|
+
disableNote?: boolean;
|
17
18
|
};
|
18
|
-
declare const ControlBar: <T>({ player, isPaused, setIsPaused, duration, notes, chapters, seekStep, id, handleSaveNoteAction, handleControlDisplayTimer, setIsQualityMenuOpen, setIsSubtitleMenuOpen, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
19
|
+
declare const ControlBar: <T>({ player, isPaused, setIsPaused, duration, notes, chapters, seekStep, id, handleSaveNoteAction, handleControlDisplayTimer, setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
19
20
|
export default ControlBar;
|
@@ -11,7 +11,7 @@ import CurrentTimeTracker from "../CurrentTimeTracker";
|
|
11
11
|
import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
|
12
12
|
import SubtitleMenu from "../SubtitleMenu";
|
13
13
|
import { BackwardIcon, ForwardIcon, FullScreenIcon, PauseIcon, PlayIcon, } from "../../images";
|
14
|
-
const ControlBar = ({ player, isPaused, setIsPaused, duration, notes, chapters, seekStep = 5, id, handleSaveNoteAction, handleControlDisplayTimer, setIsQualityMenuOpen, setIsSubtitleMenuOpen, }) => {
|
14
|
+
const ControlBar = ({ player, isPaused, setIsPaused, duration, notes, chapters, seekStep = 5, id, handleSaveNoteAction, handleControlDisplayTimer, setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote, }) => {
|
15
15
|
const { setPlayer, setDuration } = useSoftBuildersVideoPlayerContext();
|
16
16
|
const [width, setWidth] = useState(0);
|
17
17
|
const [isSeeking, setIsSeeking] = useState(true);
|
@@ -64,7 +64,7 @@ const ControlBar = ({ player, isPaused, setIsPaused, duration, notes, chapters,
|
|
64
64
|
: { width: "98%" }, 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
|
-
} }),
|
67
|
+
} }), disableNote && (_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;
|
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,C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mB,CAAC,CAAC;oBACvC,oBAAoB,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC;gBACvD,CAAC,GACD,EAED,WAAW,IAAI,CACd,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"}
|
@@ -36,6 +36,7 @@ type Props<T> = {
|
|
36
36
|
handleControlDisplayTimer: (e: any) => void;
|
37
37
|
setIsQualityMenuOpen?: (val: boolean) => void;
|
38
38
|
setIsSubtitleMenuOpen?: (val: boolean) => void;
|
39
|
+
disableNote?: boolean;
|
39
40
|
};
|
40
41
|
|
41
42
|
const ControlBar = <T,>({
|
@@ -51,6 +52,7 @@ const ControlBar = <T,>({
|
|
51
52
|
handleControlDisplayTimer,
|
52
53
|
setIsQualityMenuOpen,
|
53
54
|
setIsSubtitleMenuOpen,
|
55
|
+
disableNote,
|
54
56
|
}: Props<T>) => {
|
55
57
|
const { setPlayer, setDuration } = useSoftBuildersVideoPlayerContext();
|
56
58
|
const [width, setWidth] = useState<number>(0);
|
@@ -174,7 +176,7 @@ const ControlBar = <T,>({
|
|
174
176
|
}}
|
175
177
|
/>
|
176
178
|
{/* handleSaveNoteAction */}
|
177
|
-
{
|
179
|
+
{disableNote && (
|
178
180
|
<CreateNoteMenu
|
179
181
|
handleSaveNoteAction={handleSaveNoteAction}
|
180
182
|
width={width}
|
@@ -18,7 +18,6 @@ const QualityMenu = ({ width, onClick }) => {
|
|
18
18
|
setQualities(qs);
|
19
19
|
const source = player === null || player === void 0 ? void 0 : player.currentSource();
|
20
20
|
const quality = JSON.parse(JSON.stringify(source));
|
21
|
-
console.log(quality, "qualiy", JSON.stringify(source), "");
|
22
21
|
// setCurrentQualitySrc(quality.label);
|
23
22
|
qs && setCurrentQualitySrc(qs[0].label);
|
24
23
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/QualityMenu/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;AAGrF,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AASxE,MAAM,aAAa,GAAG,CAAC,EACrB,UAAU,EACV,OAAO,EACP,OAAO,EACP,KAAK,GACc,EAAE,EAAE;IACvB,OAAO,CACL,iBACE,SAAS,EAAE,4BACT,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAC3B,EAAE,EACF,OAAO,EAAE,OAAO,YAEhB,eAAK,SAAS,EAAC,kDAAkD,aAC/D,cAAK,SAAS,EAAC,eAAe,YAC3B,UAAU,CAAC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) => {
|
|
76
76
|
const quality: SoftBuildersVideoPlayerSource = JSON.parse(
|
77
77
|
JSON.stringify(source)
|
78
78
|
);
|
79
|
-
console.log(quality, "qualiy", JSON.stringify(source), "");
|
80
79
|
|
81
80
|
// setCurrentQualitySrc(quality.label);
|
82
81
|
qs && setCurrentQualitySrc(qs[0].label);
|
@@ -9,6 +9,7 @@ export type Props<T = any> = {
|
|
9
9
|
onPlay?: (time: number) => void;
|
10
10
|
onPause?: (time: number) => void;
|
11
11
|
isFocused?: boolean;
|
12
|
+
disableNote?: boolean;
|
12
13
|
};
|
13
|
-
declare const SoftBuildersVideoPlayer: React.MemoExoticComponent<(<T>({ options, notes, chapters, startTime, handleSaveNoteAction, onPlay, onPause, isFocused, }: Props<T>) => import("react/jsx-runtime").JSX.Element)>;
|
14
|
+
declare const SoftBuildersVideoPlayer: React.MemoExoticComponent<(<T>({ options, notes, chapters, startTime, handleSaveNoteAction, onPlay, onPause, isFocused, disableNote, }: Props<T>) => import("react/jsx-runtime").JSX.Element)>;
|
14
15
|
export default SoftBuildersVideoPlayer;
|
@@ -12,7 +12,7 @@ const DEFAULT_OPTIONS = {
|
|
12
12
|
sources: [],
|
13
13
|
tracks: [],
|
14
14
|
};
|
15
|
-
const Component = ({ options, notes, chapters, startTime = 0, handleSaveNoteAction, onPlay, onPause, isFocused = true, }) => {
|
15
|
+
const Component = ({ options, notes, chapters, startTime = 0, handleSaveNoteAction, onPlay, onPause, isFocused = true, disableNote, }) => {
|
16
16
|
options = Object.assign(Object.assign({}, options), { responsive: true, inactivityTimeout: 0, fullscreen: {
|
17
17
|
navigationUI: "hide",
|
18
18
|
} });
|
@@ -46,7 +46,7 @@ const Component = ({ options, notes, chapters, startTime = 0, handleSaveNoteActi
|
|
46
46
|
getTracks();
|
47
47
|
}, [options === null || options === void 0 ? void 0 : options.tracks]);
|
48
48
|
const id = (Date.now() + Math.random() * 100).toString();
|
49
|
-
return (_jsx(VideoPlayerComponent, { id: id, chapters: chapters, options: Object.assign(Object.assign({}, options), { tracks }), notes: notes, poster: "", startTime: startTime, handleSaveNoteAction: handleSaveNoteAction, onPause: onPause, onPlay: onPlay }));
|
49
|
+
return (_jsx(VideoPlayerComponent, { id: id, chapters: chapters, options: Object.assign(Object.assign({}, options), { tracks }), notes: notes, poster: "", startTime: startTime, handleSaveNoteAction: handleSaveNoteAction, disableNote: disableNote, onPause: onPause, onPlay: onPlay }));
|
50
50
|
};
|
51
51
|
const SoftBuildersVideoPlayer = memo(Component, (prevProps, nextProps) => {
|
52
52
|
return (prevProps.options === nextProps.options &&
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SoftBuildersVideoPlayer/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAO3D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,eAAe,GAAmC;IACtD,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,GAAG;IACV,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,EAAE;CACX,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SoftBuildersVideoPlayer/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAO3D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,eAAe,GAAmC;IACtD,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,IAAI;IACX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SAAS,CAAC,OAAO,KAAK,SAAS,CAAC,OAAO;QACvC,SAAS,CAAC,KAAK,KAAK,SAAS,CAAC,KAAK;QACnC,SAAS,CAAC,QAAQ,KAAK,SAAS,CAAC,QAAQ;QACzC,SAAS,CAAC,SAAS,KAAK,SAAS,CAAC,SAAS,CAC5C,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
|
@@ -28,6 +28,7 @@ export type Props<T = any> = {
|
|
28
28
|
onPlay?: (time: number) => void;
|
29
29
|
onPause?: (time: number) => void;
|
30
30
|
isFocused?: boolean;
|
31
|
+
disableNote?: boolean;
|
31
32
|
};
|
32
33
|
|
33
34
|
const Component = <T,>({
|
@@ -39,6 +40,7 @@ const Component = <T,>({
|
|
39
40
|
onPlay,
|
40
41
|
onPause,
|
41
42
|
isFocused = true,
|
43
|
+
disableNote,
|
42
44
|
}: Props<T>) => {
|
43
45
|
options = {
|
44
46
|
...options,
|
@@ -94,6 +96,7 @@ const Component = <T,>({
|
|
94
96
|
poster=""
|
95
97
|
startTime={startTime}
|
96
98
|
handleSaveNoteAction={handleSaveNoteAction}
|
99
|
+
disableNote={disableNote}
|
97
100
|
onPause={onPause}
|
98
101
|
onPlay={onPlay}
|
99
102
|
/>
|
@@ -12,6 +12,7 @@ export type Props<T = any> = {
|
|
12
12
|
handleSaveNoteAction?: (time: number, note: string) => Promise<T>;
|
13
13
|
onPlay?: (time: number) => void;
|
14
14
|
onPause?: (time: number) => void;
|
15
|
+
disableNote?: boolean;
|
15
16
|
};
|
16
|
-
declare const VideoPlayerComponent: <T>({ id, options, notes, chapters, startTime, handleSaveNoteAction, poster, onPlay, onPause, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
17
|
+
declare const VideoPlayerComponent: <T>({ id, options, notes, chapters, startTime, handleSaveNoteAction, poster, onPlay, onPause, disableNote, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
17
18
|
export default VideoPlayerComponent;
|
@@ -24,7 +24,7 @@ const renderBigPlayButton = (id, player, isPaused, setIsPaused, opacity = "100")
|
|
24
24
|
}
|
25
25
|
};
|
26
26
|
let controlBarRoot = {};
|
27
|
-
const renderControlBar = (id, player, isPaused, setIsPaused, duration, notes, chapters, seekStep = 5, handleSaveNoteAction, opacity = "0", handleControlDisplayTimer = () => { }, bgColor = "transparent", setIsQualityMenuOpen, setIsSubtitleMenuOpen) => {
|
27
|
+
const renderControlBar = (id, player, isPaused, setIsPaused, duration, notes, chapters, seekStep = 5, handleSaveNoteAction, opacity = "0", handleControlDisplayTimer = () => { }, bgColor = "transparent", setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote) => {
|
28
28
|
const container = document.getElementById(`video-container-${id}`);
|
29
29
|
if (container) {
|
30
30
|
container.style.height = "100%";
|
@@ -39,11 +39,11 @@ const renderControlBar = (id, player, isPaused, setIsPaused, duration, notes, ch
|
|
39
39
|
element.style.backgroundColor = `${bgColor} !important`;
|
40
40
|
element.style.height = "100%";
|
41
41
|
element.style.alignItems = "flex-end";
|
42
|
-
controlBarRoot[id].render(_jsx(SoftBuildersVideoPlayerProvider, { children: _jsx(ControlBar, { id: id, player: player, isPaused: isPaused, setIsPaused: setIsPaused, duration: duration, notes: notes, chapters: chapters, seekStep: seekStep, handleSaveNoteAction: handleSaveNoteAction, handleControlDisplayTimer: handleControlDisplayTimer, setIsSubtitleMenuOpen: setIsSubtitleMenuOpen, setIsQualityMenuOpen: setIsQualityMenuOpen }) }));
|
42
|
+
controlBarRoot[id].render(_jsx(SoftBuildersVideoPlayerProvider, { children: _jsx(ControlBar, { id: id, player: player, isPaused: isPaused, setIsPaused: setIsPaused, duration: duration, notes: notes, chapters: chapters, seekStep: seekStep, handleSaveNoteAction: handleSaveNoteAction, handleControlDisplayTimer: handleControlDisplayTimer, setIsSubtitleMenuOpen: setIsSubtitleMenuOpen, setIsQualityMenuOpen: setIsQualityMenuOpen, disableNote: disableNote }) }));
|
43
43
|
}
|
44
44
|
}
|
45
45
|
};
|
46
|
-
const VideoPlayerComponent = ({ id, options, notes, chapters, startTime = 0, handleSaveNoteAction, poster, onPlay, onPause, }) => {
|
46
|
+
const VideoPlayerComponent = ({ id, options, notes, chapters, startTime = 0, handleSaveNoteAction, poster, onPlay, onPause, disableNote, }) => {
|
47
47
|
var _a;
|
48
48
|
const videoRef = useRef(undefined);
|
49
49
|
const playerRef = useRef(undefined);
|
@@ -123,7 +123,7 @@ const VideoPlayerComponent = ({ id, options, notes, chapters, startTime = 0, han
|
|
123
123
|
const controlBarTimeout = setTimeout(() => {
|
124
124
|
renderControlBar(id, playerRef.current, isPaused, setIsPaused, duration, notes, chapters, 5, handleSaveNoteAction, opacity, (e) => {
|
125
125
|
handlePlayerClick(e, true);
|
126
|
-
}, bgColor, setIsQualityMenuOpen, setIsSubtitleMenuOpen);
|
126
|
+
}, bgColor, setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote);
|
127
127
|
}, 500);
|
128
128
|
return () => clearTimeout(controlBarTimeout);
|
129
129
|
}
|
@@ -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,UAAkB,KAAK,EAC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kDAAI,CAAC;gBAEjD,IAAI,QAAQ,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;oBAC1C,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,GAAG,QAAQ,CAAC,GAAG,GAAG,GAAG,CAAC;oBACnD,aAAa,CAAC,KAAK,CAAC,CAAC;gBACvB,CAAC;qBAAM,CAAC;oBACN,aAAa,CAAC,GAAG,CAAC,CAAC;gBACrB,CAAC;YACH,CAAC;QACH,CAAC,CAAC;QACF,gBAAgB,EAAE,CAAC;IACrB,CAAC,EAAE,CAAC,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,OAAO,0CAAE,WAAW,EAAE,CAAC,CAAC,CAAC;IAExC,OAAO,CACL,cACE,GAAG,EAAE,SAAS,EACd,EAAE,EAAE,mBAAmB,EAAE,EAAE,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"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/VideoPlayerComponent/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ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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"}
|
@@ -61,7 +61,8 @@ const renderControlBar = <T,>(
|
|
61
61
|
handleControlDisplayTimer: (e: any) => void = () => {},
|
62
62
|
bgColor: string = "transparent",
|
63
63
|
setIsQualityMenuOpen?: (val: boolean) => void,
|
64
|
-
setIsSubtitleMenuOpen?: (val: boolean) => void
|
64
|
+
setIsSubtitleMenuOpen?: (val: boolean) => void,
|
65
|
+
disableNote?: boolean
|
65
66
|
) => {
|
66
67
|
const container = document.getElementById(`video-container-${id}`);
|
67
68
|
if (container) {
|
@@ -92,6 +93,7 @@ const renderControlBar = <T,>(
|
|
92
93
|
handleControlDisplayTimer={handleControlDisplayTimer}
|
93
94
|
setIsSubtitleMenuOpen={setIsSubtitleMenuOpen}
|
94
95
|
setIsQualityMenuOpen={setIsQualityMenuOpen}
|
96
|
+
disableNote={disableNote}
|
95
97
|
/>
|
96
98
|
</SoftBuildersVideoPlayerProvider>
|
97
99
|
);
|
@@ -108,6 +110,7 @@ export type Props<T = any> = {
|
|
108
110
|
handleSaveNoteAction?: (time: number, note: string) => Promise<T>;
|
109
111
|
onPlay?: (time: number) => void;
|
110
112
|
onPause?: (time: number) => void;
|
113
|
+
disableNote?: boolean;
|
111
114
|
};
|
112
115
|
const VideoPlayerComponent = <T,>({
|
113
116
|
id,
|
@@ -119,6 +122,7 @@ const VideoPlayerComponent = <T,>({
|
|
119
122
|
poster,
|
120
123
|
onPlay,
|
121
124
|
onPause,
|
125
|
+
disableNote,
|
122
126
|
}: Props<T>) => {
|
123
127
|
const videoRef = useRef<any>(undefined);
|
124
128
|
const playerRef = useRef<Player | undefined>(undefined);
|
@@ -212,7 +216,8 @@ const VideoPlayerComponent = <T,>({
|
|
212
216
|
},
|
213
217
|
bgColor,
|
214
218
|
setIsQualityMenuOpen,
|
215
|
-
setIsSubtitleMenuOpen
|
219
|
+
setIsSubtitleMenuOpen,
|
220
|
+
disableNote
|
216
221
|
);
|
217
222
|
}, 500);
|
218
223
|
return () => clearTimeout(controlBarTimeout);
|
package/dist/index.d.mts
CHANGED
@@ -44,7 +44,8 @@ type Props<T = any> = {
|
|
44
44
|
onPlay?: (time: number) => void;
|
45
45
|
onPause?: (time: number) => void;
|
46
46
|
isFocused?: boolean;
|
47
|
+
disableNote?: boolean;
|
47
48
|
};
|
48
|
-
declare const SoftBuildersVideoPlayer: React.MemoExoticComponent<(<T>({ options, notes, chapters, startTime, handleSaveNoteAction, onPlay, onPause, isFocused, }: Props<T>) => react_jsx_runtime.JSX.Element)>;
|
49
|
+
declare const SoftBuildersVideoPlayer: React.MemoExoticComponent<(<T>({ options, notes, chapters, startTime, handleSaveNoteAction, onPlay, onPause, isFocused, disableNote, }: Props<T>) => react_jsx_runtime.JSX.Element)>;
|
49
50
|
|
50
51
|
export { type SoftBuildersVideoPlayerChapter, type SoftBuildersVideoPlayerNote, type SoftBuildersVideoPlayerOptions, type SoftBuildersVideoPlayerSource, type SoftBuildersVideoPlayerTrack, SoftBuildersVideoPlayer as default };
|
package/dist/index.mjs
CHANGED
@@ -702,7 +702,6 @@ var QualityMenu = ({ width, onClick }) => {
|
|
702
702
|
const quality = JSON.parse(
|
703
703
|
JSON.stringify(source)
|
704
704
|
);
|
705
|
-
console.log(quality, "qualiy", JSON.stringify(source), "");
|
706
705
|
qs && setCurrentQualitySrc(qs[0].label);
|
707
706
|
}
|
708
707
|
}, [player]);
|
@@ -1222,7 +1221,8 @@ var ControlBar = ({
|
|
1222
1221
|
handleSaveNoteAction,
|
1223
1222
|
handleControlDisplayTimer,
|
1224
1223
|
setIsQualityMenuOpen,
|
1225
|
-
setIsSubtitleMenuOpen
|
1224
|
+
setIsSubtitleMenuOpen,
|
1225
|
+
disableNote
|
1226
1226
|
}) => {
|
1227
1227
|
const { setPlayer, setDuration } = useSoftBuildersVideoPlayerContext();
|
1228
1228
|
const [width, setWidth] = useState12(0);
|
@@ -1326,7 +1326,7 @@ var ControlBar = ({
|
|
1326
1326
|
}
|
1327
1327
|
}
|
1328
1328
|
),
|
1329
|
-
/* @__PURE__ */ jsx33(
|
1329
|
+
disableNote && /* @__PURE__ */ jsx33(
|
1330
1330
|
CreateNoteMenu_default,
|
1331
1331
|
{
|
1332
1332
|
handleSaveNoteAction,
|
@@ -1411,7 +1411,7 @@ var renderBigPlayButton = (id, player, isPaused, setIsPaused, opacity = "100") =
|
|
1411
1411
|
};
|
1412
1412
|
var controlBarRoot = {};
|
1413
1413
|
var renderControlBar = (id, player, isPaused, setIsPaused, duration, notes, chapters, seekStep = 5, handleSaveNoteAction, opacity = "0", handleControlDisplayTimer = () => {
|
1414
|
-
}, bgColor = "transparent", setIsQualityMenuOpen, setIsSubtitleMenuOpen) => {
|
1414
|
+
}, bgColor = "transparent", setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote) => {
|
1415
1415
|
const container = document.getElementById(`video-container-${id}`);
|
1416
1416
|
if (container) {
|
1417
1417
|
container.style.height = "100%";
|
@@ -1441,7 +1441,8 @@ var renderControlBar = (id, player, isPaused, setIsPaused, duration, notes, chap
|
|
1441
1441
|
handleSaveNoteAction,
|
1442
1442
|
handleControlDisplayTimer,
|
1443
1443
|
setIsSubtitleMenuOpen,
|
1444
|
-
setIsQualityMenuOpen
|
1444
|
+
setIsQualityMenuOpen,
|
1445
|
+
disableNote
|
1445
1446
|
}
|
1446
1447
|
) })
|
1447
1448
|
);
|
@@ -1457,7 +1458,8 @@ var VideoPlayerComponent = ({
|
|
1457
1458
|
handleSaveNoteAction,
|
1458
1459
|
poster,
|
1459
1460
|
onPlay,
|
1460
|
-
onPause
|
1461
|
+
onPause,
|
1462
|
+
disableNote
|
1461
1463
|
}) => {
|
1462
1464
|
var _a;
|
1463
1465
|
const videoRef = useRef2(void 0);
|
@@ -1549,7 +1551,8 @@ var VideoPlayerComponent = ({
|
|
1549
1551
|
},
|
1550
1552
|
bgColor,
|
1551
1553
|
setIsQualityMenuOpen,
|
1552
|
-
setIsSubtitleMenuOpen
|
1554
|
+
setIsSubtitleMenuOpen,
|
1555
|
+
disableNote
|
1553
1556
|
);
|
1554
1557
|
}, 500);
|
1555
1558
|
return () => clearTimeout(controlBarTimeout);
|
@@ -1765,7 +1768,8 @@ var Component = ({
|
|
1765
1768
|
handleSaveNoteAction,
|
1766
1769
|
onPlay,
|
1767
1770
|
onPause,
|
1768
|
-
isFocused = true
|
1771
|
+
isFocused = true,
|
1772
|
+
disableNote
|
1769
1773
|
}) => {
|
1770
1774
|
options = __spreadProps(__spreadValues({}, options), {
|
1771
1775
|
responsive: true,
|
@@ -1813,6 +1817,7 @@ var Component = ({
|
|
1813
1817
|
poster: "",
|
1814
1818
|
startTime,
|
1815
1819
|
handleSaveNoteAction,
|
1820
|
+
disableNote,
|
1816
1821
|
onPause,
|
1817
1822
|
onPlay
|
1818
1823
|
}
|