softbuilders-react-video-player 1.1.10 → 1.1.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ControlBar/index.js +7 -3
- package/dist/components/ControlBar/index.js.map +1 -1
- package/dist/components/ControlBar/index.tsx +9 -3
- package/dist/components/Slider/index.js +7 -1
- package/dist/components/Slider/index.js.map +1 -1
- package/dist/components/Slider/index.tsx +10 -1
- package/dist/components/VideoPlayerComponent/index.js +6 -4
- package/dist/components/VideoPlayerComponent/index.js.map +1 -1
- package/dist/components/VideoPlayerComponent/index.tsx +9 -5
- package/dist/components/VolumeSlider/index.js +5 -1
- package/dist/components/VolumeSlider/index.js.map +1 -1
- package/dist/components/VolumeSlider/index.tsx +5 -1
- package/dist/index.mjs +29 -9
- package/package.json +1 -1
@@ -21,7 +21,6 @@ const ControlBar = ({ player, isPaused, setIsPaused, duration, notes, chapters,
|
|
21
21
|
const container = document.getElementById(`video-container-${id}`);
|
22
22
|
function handleWidthChange(width) {
|
23
23
|
setwidth(width);
|
24
|
-
console.log(width);
|
25
24
|
}
|
26
25
|
const resizeObserver = new ResizeObserver((entries) => {
|
27
26
|
for (let entry of entries) {
|
@@ -32,7 +31,9 @@ const ControlBar = ({ player, isPaused, setIsPaused, duration, notes, chapters,
|
|
32
31
|
// Start observing the element
|
33
32
|
resizeObserver.observe(container);
|
34
33
|
const togglePlay = (e) => {
|
34
|
+
e.preventDefault();
|
35
35
|
e.stopPropagation();
|
36
|
+
console.log("ok");
|
36
37
|
if (isPaused)
|
37
38
|
player === null || player === void 0 ? void 0 : player.play();
|
38
39
|
else
|
@@ -47,9 +48,12 @@ const ControlBar = ({ player, isPaused, setIsPaused, duration, notes, chapters,
|
|
47
48
|
}, [duration]);
|
48
49
|
return (_jsxs("div", { className: " sb-px-2 sb-flex sb-justify-center sb-gap-3 sb-w-full sb-h-full sb-items-end pb-2", children: [_jsx(BufferTracker, {}), _jsx(CurrentTimeTracker, {}), _jsx("button", { onClick: () => {
|
49
50
|
seek(-seekStep);
|
50
|
-
}, children: _jsx(BackwardIcon, { className: "sb-w-3 sb-h-3" }) }), _jsx("button", { onClick: togglePlay, children: isPaused ? (_jsx(PlayIcon, { className: "sb-w-3 sb-h-3" })) : (_jsx(PauseIcon, { className: "sb-w-3 sb-h-3" })) }), _jsx("button", { onClick: () => {
|
51
|
+
}, children: _jsx(BackwardIcon, { className: "sb-w-3 sb-h-3" }) }), _jsx("button", { onClick: togglePlay, children: isPaused ? (_jsx(PlayIcon, { className: "sb-w-3 sb-h-3" })) : (_jsx(PauseIcon, { className: "sb-w-3 sb-h-3" })) }), _jsx("button", { onClick: (e) => {
|
52
|
+
e.preventDefault();
|
51
53
|
seek(seekStep);
|
52
|
-
}, children: _jsx(ForwardIcon, { className: "sb-w-3 sb-h-3" }) }), _jsx(CurrentTimeLabel, {}), _jsx("div", { className: "sb-w-[30%] hover:sb-w-[45%] sb-transition-all sb-ease-in-out sb-duration-500", children: _jsx(TimeSliderContainer, { chapters: chapters, notes: notes }) }), _jsx("p", { children: durationFormater(duration) }), _jsx("div", { className: "sb-h-full", children: _jsx(VolumeSlider, { width: width }) }), _jsx(QualityMenu, {}), _jsx("button", { onClick: () => {
|
54
|
+
}, children: _jsx(ForwardIcon, { className: "sb-w-3 sb-h-3" }) }), _jsx(CurrentTimeLabel, {}), _jsx("div", { className: "sb-w-[30%] hover:sb-w-[45%] sb-transition-all sb-ease-in-out sb-duration-500", children: _jsx(TimeSliderContainer, { chapters: chapters, notes: notes }) }), _jsx("p", { children: durationFormater(duration) }), _jsx("div", { className: "sb-h-full", children: _jsx(VolumeSlider, { width: width }) }), _jsx(QualityMenu, {}), _jsx("button", { onClick: (e) => {
|
55
|
+
e.preventDefault();
|
56
|
+
e.stopPropagation();
|
53
57
|
if (player === null || player === void 0 ? void 0 : player.isFullscreen()) {
|
54
58
|
player === null || player === void 0 ? void 0 : player.exitFullscreen();
|
55
59
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Control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,MAAM,CAAE,iBAAiB,EAAE,CAAC;oBAC9B,CAAC;gBACH,CAAC,YAED,KAAC,cAAc,IAAC,SAAS,EAAC,eAAe,GAAG,GACrC,EAER,oBAAoB,IAAI,CACvB,KAAC,cAAc,IAAC,oBAAoB,EAAE,oBAAoB,GAAI,CAC/D,EAED,KAAC,YAAY,KAAG,IACZ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
@@ -56,7 +56,6 @@ const ControlBar = <T,>({
|
|
56
56
|
const container = document.getElementById(`video-container-${id}`);
|
57
57
|
function handleWidthChange(width) {
|
58
58
|
setwidth(width);
|
59
|
-
console.log(width);
|
60
59
|
}
|
61
60
|
const resizeObserver = new ResizeObserver((entries) => {
|
62
61
|
for (let entry of entries) {
|
@@ -68,7 +67,10 @@ const ControlBar = <T,>({
|
|
68
67
|
// Start observing the element
|
69
68
|
resizeObserver.observe(container);
|
70
69
|
const togglePlay = (e) => {
|
70
|
+
e.preventDefault();
|
71
71
|
e.stopPropagation();
|
72
|
+
console.log("ok");
|
73
|
+
|
72
74
|
if (isPaused) player?.play();
|
73
75
|
else player?.pause();
|
74
76
|
|
@@ -105,7 +107,8 @@ const ControlBar = <T,>({
|
|
105
107
|
)}
|
106
108
|
</button>
|
107
109
|
<button
|
108
|
-
onClick={() => {
|
110
|
+
onClick={(e) => {
|
111
|
+
e.preventDefault();
|
109
112
|
seek(seekStep);
|
110
113
|
}}
|
111
114
|
>
|
@@ -127,7 +130,10 @@ const ControlBar = <T,>({
|
|
127
130
|
<QualityMenu />
|
128
131
|
|
129
132
|
<button
|
130
|
-
onClick={() => {
|
133
|
+
onClick={(e) => {
|
134
|
+
e.preventDefault();
|
135
|
+
e.stopPropagation();
|
136
|
+
|
131
137
|
if (player?.isFullscreen()) {
|
132
138
|
player?.exitFullscreen();
|
133
139
|
} else {
|
@@ -13,7 +13,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import "./style.css";
|
14
14
|
const Slider = (_a) => {
|
15
15
|
var { value, handleValueChange, min = 0, max = 100, className } = _a, rest = __rest(_a, ["value", "handleValueChange", "min", "max", "className"]);
|
16
|
-
return (_jsx("input", Object.assign({ type: "range", min: min,
|
16
|
+
return (_jsx("input", Object.assign({ type: "range", min: min, onMouseDown: (e) => e.stopPropagation(), onClick: (e) => {
|
17
|
+
e.stopPropagation();
|
18
|
+
}, onMouseUp: (e) => e.stopPropagation(), max: max, value: value, onChange: (e) => {
|
19
|
+
e.preventDefault();
|
20
|
+
e.stopPropagation();
|
21
|
+
handleValueChange(e);
|
22
|
+
}, className: `sb-w-full sb-h-2 sb-bg-transparent sb-bg-opacity-50 sb-rounded-lg sb-appearance-none sb-cursor-pointer sb-range-slider sb-slider-thumb
|
17
23
|
${className}`, style: {
|
18
24
|
background: `linear-gradient(to right, #f97316 ${value}%, #30303070 ${value}%)`,
|
19
25
|
} }, rest)));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Slider/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,aAAa,CAAC;AASrB,MAAM,MAAM,GAAG,CAAC,EAOR,EAAE,EAAE;QAPI,EACd,KAAK,EACL,iBAAiB,EACjB,GAAG,GAAG,CAAC,EACP,GAAG,GAAG,GAAG,EACT,SAAS,OAEH,EADH,IAAI,cANO,yDAOf,CADQ;IAEP,OAAO,CACL,8BACE,IAAI,EAAC,OAAO,EACZ,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,iBAAiB,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Slider/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,aAAa,CAAC;AASrB,MAAM,MAAM,GAAG,CAAC,EAOR,EAAE,EAAE;QAPI,EACd,KAAK,EACL,iBAAiB,EACjB,GAAG,GAAG,CAAC,EACP,GAAG,GAAG,GAAG,EACT,SAAS,OAEH,EADH,IAAI,cANO,yDAOf,CADQ;IAEP,OAAO,CACL,8BACE,IAAI,EAAC,OAAO,EACZ,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,EACvC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;YACb,CAAC,CAAC,eAAe,EAAE,CAAC;QACtB,CAAC,EACD,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,EACrC,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;YACd,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,CAAC,CAAC,eAAe,EAAE,CAAC;YACpB,iBAAiB,CAAC,CAAC,CAAC,CAAC;QACvB,CAAC,EACD,SAAS,EAAE;UACP,SAAS,EAAE,EACf,KAAK,EAAE;YACL,UAAU,EAAE,qCAAqC,KAAK,gBAAgB,KAAK,IAAI;SAChF,IACG,IAAI,EACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -20,9 +20,18 @@ const Slider = ({
|
|
20
20
|
<input
|
21
21
|
type="range"
|
22
22
|
min={min}
|
23
|
+
onMouseDown={(e) => e.stopPropagation()}
|
24
|
+
onClick={(e) => {
|
25
|
+
e.stopPropagation();
|
26
|
+
}}
|
27
|
+
onMouseUp={(e) => e.stopPropagation()}
|
23
28
|
max={max}
|
24
29
|
value={value}
|
25
|
-
onChange={
|
30
|
+
onChange={(e) => {
|
31
|
+
e.preventDefault();
|
32
|
+
e.stopPropagation();
|
33
|
+
handleValueChange(e);
|
34
|
+
}}
|
26
35
|
className={`sb-w-full sb-h-2 sb-bg-transparent sb-bg-opacity-50 sb-rounded-lg sb-appearance-none sb-cursor-pointer sb-range-slider sb-slider-thumb
|
27
36
|
${className}`}
|
28
37
|
style={{
|
@@ -137,7 +137,9 @@ const VideoPlayerComponent = ({ id, options, notes, chapters, startTime = 0, han
|
|
137
137
|
return () => clearInterval(intervalId);
|
138
138
|
}
|
139
139
|
}, []);
|
140
|
-
const handlePlayerClick = () => {
|
140
|
+
const handlePlayerClick = (e) => {
|
141
|
+
e.preventDefault();
|
142
|
+
console.log("all");
|
141
143
|
if (playerRef.current) {
|
142
144
|
if (playerRef.current.paused()) {
|
143
145
|
playerRef.current.play();
|
@@ -151,10 +153,10 @@ const VideoPlayerComponent = ({ id, options, notes, chapters, startTime = 0, han
|
|
151
153
|
}
|
152
154
|
}
|
153
155
|
};
|
154
|
-
return (_jsx("div", { id: `video-container-${id}`, className: "sb-relative sb-rounded-md sb-overflow-hidden
|
155
|
-
height: "100%",
|
156
|
+
return (_jsx("div", { id: `video-container-${id}`, className: "sb-relative sb-rounded-md sb-overflow-hidden", children: _jsx("div", { className: "hover:sb-cursor-pointer", "data-vjs-player": true, style: {
|
157
|
+
height: "100%", // Adjust height as needed
|
156
158
|
position: "relative",
|
157
|
-
}, children: _jsx("div", { ref: videoRef }) }) }));
|
159
|
+
}, children: _jsx("div", { onClick: handlePlayerClick, ref: videoRef }) }) }));
|
158
160
|
};
|
159
161
|
export default VideoPlayerComponent;
|
160
162
|
//# sourceMappingURL=index.js.map
|
@@ -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;AAOvC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,+BAA+B,EAAE,MAAM,YAAY,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AC9B,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAEnB,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;YACtB,IAAI,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;gBAC/B,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;gBACzB,WAAW,CAAC,KAAK,CAAC,CAAC;YACrB,CAAC;iBAAM,CAAC;gBACN,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;gBAC1B,WAAW,CAAC,IAAI,CAAC,CAAC;gBAClB,IAAI,OAAO;oBAAE,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;YACxD,CAAC;QACH,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,cACE,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAC3B,SAAS,EAAC,8CAA8C,YAExD,cACE,SAAS,EAAC,yBAAyB,2BAGnC,KAAK,EAAE;gBACL,MAAM,EAAE,MAAM,EAAE,0BAA0B;gBAC1C,QAAQ,EAAE,UAAU;aACrB,YAED,cAAK,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,QAAQ,GAAI,GAC9C,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
@@ -236,7 +236,10 @@ const VideoPlayerComponent = <T,>({
|
|
236
236
|
}
|
237
237
|
}, []);
|
238
238
|
|
239
|
-
const handlePlayerClick = () => {
|
239
|
+
const handlePlayerClick = (e) => {
|
240
|
+
e.preventDefault();
|
241
|
+
console.log("all");
|
242
|
+
|
240
243
|
if (playerRef.current) {
|
241
244
|
if (playerRef.current.paused()) {
|
242
245
|
playerRef.current.play();
|
@@ -252,17 +255,18 @@ const VideoPlayerComponent = <T,>({
|
|
252
255
|
return (
|
253
256
|
<div
|
254
257
|
id={`video-container-${id}`}
|
255
|
-
className="sb-relative sb-rounded-md sb-overflow-hidden
|
256
|
-
onClick={handlePlayerClick}
|
258
|
+
className="sb-relative sb-rounded-md sb-overflow-hidden"
|
257
259
|
>
|
258
260
|
<div
|
261
|
+
className="hover:sb-cursor-pointer"
|
262
|
+
// Attach click event
|
259
263
|
data-vjs-player
|
260
264
|
style={{
|
261
|
-
height: "100%",
|
265
|
+
height: "100%", // Adjust height as needed
|
262
266
|
position: "relative",
|
263
267
|
}}
|
264
268
|
>
|
265
|
-
<div ref={videoRef} />
|
269
|
+
<div onClick={handlePlayerClick} ref={videoRef} />
|
266
270
|
</div>
|
267
271
|
</div>
|
268
272
|
);
|
@@ -11,10 +11,14 @@ const VolumeSlider = ({ width }) => {
|
|
11
11
|
useEffect(() => {
|
12
12
|
setVolume((player === null || player === void 0 ? void 0 : player.muted()) ? 0 : Number(player === null || player === void 0 ? void 0 : player.volume()) * 100 || 0);
|
13
13
|
}, [player]);
|
14
|
-
const toggleVisiblity = () => {
|
14
|
+
const toggleVisiblity = (e) => {
|
15
|
+
e.preventDefault();
|
16
|
+
e.stopPropagation();
|
15
17
|
setVisible((prev) => !prev);
|
16
18
|
};
|
17
19
|
const handleValueChange = (e) => {
|
20
|
+
e.preventDefault();
|
21
|
+
e.stopPropagation();
|
18
22
|
const newVolume = Number(e.target.value);
|
19
23
|
setVolume(newVolume);
|
20
24
|
player === null || player === void 0 ? void 0 : player.volume(newVolume / 100);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/VolumeSlider/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,GAAG,GAAG,CAAC,EACX,GAAG,GAAG,GA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K,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EACrB,wBAAwB,EACxB,OAAO,EAAE,eAAe,YAEvB,MAAM,KAAK,CAAC,KAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,EAAE,CAAA,CAAC,CAAC,CAAC,CACjC,KAAC,QAAQ,IACP,SAAS,EAAE,iBAAiB,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,iBAAiB,GACnE,CACH,CAAC,CAAC,CAAC,CACF,KAAC,UAAU,IACT,SAAS,EAAE,iBAAiB,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,gBAAgB,GACjE,CACH,GACG,EAEN,cAAK,SAAS,EAAC,2CAA2C,YAExD,cACE,SAAS,EAAE,GACT,SAAS,IAAI,KAAK,GAAG,GAAG;wBACtB,CAAC,CAAC,cAAc;wBAChB,CAAC,CAAC,CAAC,SAAS,IAAI,KAAK,GAAG,GAAG;4BAC3B,CAAC,CAAC,WAAW;4BACb,CAAC,CAAC,EACN,kDACE,KAAK,GAAG,GAAG;wBACT,CAAC,CAAC,iDAAiD;wBACnD,CAAC,CAAC,kBACN,EAAE,YAEF,KAAC,MAAM,IACL,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,iBAAiB,EACpC,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,UAAU,GACpB,GACE,GACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -18,11 +18,15 @@ const VolumeSlider = ({ width }: Props) => {
|
|
18
18
|
useEffect(() => {
|
19
19
|
setVolume(player?.muted() ? 0 : Number(player?.volume()) * 100 || 0);
|
20
20
|
}, [player]);
|
21
|
-
const toggleVisiblity = () => {
|
21
|
+
const toggleVisiblity = (e) => {
|
22
|
+
e.preventDefault();
|
23
|
+
e.stopPropagation();
|
22
24
|
setVisible((prev) => !prev);
|
23
25
|
};
|
24
26
|
|
25
27
|
const handleValueChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
28
|
+
e.preventDefault();
|
29
|
+
e.stopPropagation();
|
26
30
|
const newVolume = Number(e.target.value);
|
27
31
|
|
28
32
|
setVolume(newVolume);
|
package/dist/index.mjs
CHANGED
@@ -177,9 +177,18 @@ var Slider = (_a) => {
|
|
177
177
|
__spreadValues({
|
178
178
|
type: "range",
|
179
179
|
min,
|
180
|
+
onMouseDown: (e) => e.stopPropagation(),
|
181
|
+
onClick: (e) => {
|
182
|
+
e.stopPropagation();
|
183
|
+
},
|
184
|
+
onMouseUp: (e) => e.stopPropagation(),
|
180
185
|
max,
|
181
186
|
value,
|
182
|
-
onChange:
|
187
|
+
onChange: (e) => {
|
188
|
+
e.preventDefault();
|
189
|
+
e.stopPropagation();
|
190
|
+
handleValueChange(e);
|
191
|
+
},
|
183
192
|
className: `sb-w-full sb-h-2 sb-bg-transparent sb-bg-opacity-50 sb-rounded-lg sb-appearance-none sb-cursor-pointer sb-range-slider sb-slider-thumb
|
184
193
|
${className}`,
|
185
194
|
style: {
|
@@ -508,10 +517,14 @@ var VolumeSlider = ({ width }) => {
|
|
508
517
|
useEffect2(() => {
|
509
518
|
setVolume((player == null ? void 0 : player.muted()) ? 0 : Number(player == null ? void 0 : player.volume()) * 100 || 0);
|
510
519
|
}, [player]);
|
511
|
-
const toggleVisiblity = () => {
|
520
|
+
const toggleVisiblity = (e) => {
|
521
|
+
e.preventDefault();
|
522
|
+
e.stopPropagation();
|
512
523
|
setVisible((prev) => !prev);
|
513
524
|
};
|
514
525
|
const handleValueChange = (e) => {
|
526
|
+
e.preventDefault();
|
527
|
+
e.stopPropagation();
|
515
528
|
const newVolume = Number(e.target.value);
|
516
529
|
setVolume(newVolume);
|
517
530
|
player == null ? void 0 : player.volume(newVolume / 100);
|
@@ -1124,7 +1137,6 @@ var ControlBar = ({
|
|
1124
1137
|
const container = document.getElementById(`video-container-${id}`);
|
1125
1138
|
function handleWidthChange(width2) {
|
1126
1139
|
setwidth(width2);
|
1127
|
-
console.log(width2);
|
1128
1140
|
}
|
1129
1141
|
const resizeObserver = new ResizeObserver((entries) => {
|
1130
1142
|
for (let entry of entries) {
|
@@ -1134,7 +1146,9 @@ var ControlBar = ({
|
|
1134
1146
|
});
|
1135
1147
|
resizeObserver.observe(container);
|
1136
1148
|
const togglePlay = (e) => {
|
1149
|
+
e.preventDefault();
|
1137
1150
|
e.stopPropagation();
|
1151
|
+
console.log("ok");
|
1138
1152
|
if (isPaused) player == null ? void 0 : player.play();
|
1139
1153
|
else player == null ? void 0 : player.pause();
|
1140
1154
|
setIsPaused(!isPaused);
|
@@ -1161,7 +1175,8 @@ var ControlBar = ({
|
|
1161
1175
|
/* @__PURE__ */ jsx33(
|
1162
1176
|
"button",
|
1163
1177
|
{
|
1164
|
-
onClick: () => {
|
1178
|
+
onClick: (e) => {
|
1179
|
+
e.preventDefault();
|
1165
1180
|
seek(seekStep);
|
1166
1181
|
},
|
1167
1182
|
children: /* @__PURE__ */ jsx33(ForwardIcon_default, { className: "sb-w-3 sb-h-3" })
|
@@ -1175,7 +1190,9 @@ var ControlBar = ({
|
|
1175
1190
|
/* @__PURE__ */ jsx33(
|
1176
1191
|
"button",
|
1177
1192
|
{
|
1178
|
-
onClick: () => {
|
1193
|
+
onClick: (e) => {
|
1194
|
+
e.preventDefault();
|
1195
|
+
e.stopPropagation();
|
1179
1196
|
if (player == null ? void 0 : player.isFullscreen()) {
|
1180
1197
|
player == null ? void 0 : player.exitFullscreen();
|
1181
1198
|
} else {
|
@@ -1381,7 +1398,9 @@ var VideoPlayerComponent = ({
|
|
1381
1398
|
return () => clearInterval(intervalId);
|
1382
1399
|
}
|
1383
1400
|
}, []);
|
1384
|
-
const handlePlayerClick = () => {
|
1401
|
+
const handlePlayerClick = (e) => {
|
1402
|
+
e.preventDefault();
|
1403
|
+
console.log("all");
|
1385
1404
|
if (playerRef.current) {
|
1386
1405
|
if (playerRef.current.paused()) {
|
1387
1406
|
playerRef.current.play();
|
@@ -1397,17 +1416,18 @@ var VideoPlayerComponent = ({
|
|
1397
1416
|
"div",
|
1398
1417
|
{
|
1399
1418
|
id: `video-container-${id}`,
|
1400
|
-
className: "sb-relative sb-rounded-md sb-overflow-hidden
|
1401
|
-
onClick: handlePlayerClick,
|
1419
|
+
className: "sb-relative sb-rounded-md sb-overflow-hidden",
|
1402
1420
|
children: /* @__PURE__ */ jsx35(
|
1403
1421
|
"div",
|
1404
1422
|
{
|
1423
|
+
className: "hover:sb-cursor-pointer",
|
1405
1424
|
"data-vjs-player": true,
|
1406
1425
|
style: {
|
1407
1426
|
height: "100%",
|
1427
|
+
// Adjust height as needed
|
1408
1428
|
position: "relative"
|
1409
1429
|
},
|
1410
|
-
children: /* @__PURE__ */ jsx35("div", { ref: videoRef })
|
1430
|
+
children: /* @__PURE__ */ jsx35("div", { onClick: handlePlayerClick, ref: videoRef })
|
1411
1431
|
}
|
1412
1432
|
)
|
1413
1433
|
}
|