softbuilders-react-video-player 1.2.3 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,103 +1,111 @@
1
- import React, { useEffect, useState } from "react";
1
+ import React, { useEffect, useLayoutEffect, useState } from "react";
2
2
  import Slider from "../Slider";
3
3
  import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
4
4
  import { SoftBuildersVideoPlayerChapter } from "../../types";
5
5
  import log from "video.js/dist/types/utils/log";
6
6
 
7
7
  const MIN = 0,
8
- MAX = 100;
8
+ MAX = 100;
9
9
  const DEFERENCE = Math.abs(MAX - MIN);
10
10
  const BAR_PERCENTAGE_WIDTH = 0.5;
11
11
 
12
12
  type Props = {
13
- chapters?: SoftBuildersVideoPlayerChapter[];
13
+ chapters?: SoftBuildersVideoPlayerChapter[];
14
14
  };
15
15
 
16
16
  const TimeSlider = ({ chapters }: Props) => {
17
- const [timeSlider, setTimeSlider] = useState(0);
18
-
19
- const { player, duration, downloadedBufferPercentage } =
20
- useSoftBuildersVideoPlayerContext();
21
-
22
- const handleValueChange = (e: React.ChangeEvent<HTMLInputElement>) => {
23
- const newTimeSlider = Number(e.target.value);
24
- setTimeSlider(newTimeSlider);
25
- console.log("newTimeSlider: ", newTimeSlider);
26
-
27
- const time = (newTimeSlider * duration) / DEFERENCE;
28
- console.log("time: ", time);
29
-
30
- player?.currentTime(time);
31
- };
32
-
33
- const handleSliderClick = (e: React.MouseEvent<HTMLDivElement>) => {
34
- const slider = e.currentTarget; // Get the slider element
35
- const rect = slider.getBoundingClientRect(); // Get the bounding rect of the slider
36
- const offsetX = e.clientX - rect.left; // Get the click position relative to the slider
37
- const newTimeSlider = (offsetX / rect.width) * DEFERENCE; // Calculate the new slider value
38
-
39
- // Update the time using the same function
40
- const time = (newTimeSlider * duration) / DEFERENCE;
41
- player?.currentTime(time);
42
- setTimeSlider(newTimeSlider); // Update the state to reflect the change
43
- };
44
-
45
- useEffect(() => {
46
- const intervalId = setInterval(() => {
47
- const currentTime = player?.currentTime() || 0;
48
-
49
- const time = (currentTime * DEFERENCE) / duration;
50
-
51
- setTimeSlider(time);
52
- }, 1000);
53
-
54
- // Cleanup function to clear the interval
55
- return () => clearInterval(intervalId);
56
- }, [player, duration]);
57
-
58
- const [maskCuttes, setMaskCuttes] = useState("");
59
-
60
- useEffect(() => {
61
- const arr: string[] = ["black 0%"];
62
- chapters?.forEach((c) => {
63
- const startPercentage = Math.floor((c.startTime * 100) / duration);
64
- const endPercentage = Math.floor((c.endTime * 100) / duration);
65
- arr.push(`black ${startPercentage}%`);
66
- arr.push(`transparent ${startPercentage}%`);
67
- arr.push(`transparent ${startPercentage + BAR_PERCENTAGE_WIDTH}%`);
68
-
69
- arr.push(`black ${startPercentage + BAR_PERCENTAGE_WIDTH}%`);
70
- arr.push(`black ${endPercentage}%`);
71
-
72
- arr.push(`transparent ${endPercentage}%`);
73
- arr.push(`transparent ${endPercentage + BAR_PERCENTAGE_WIDTH}%`);
74
-
75
- arr.push(`black ${endPercentage + BAR_PERCENTAGE_WIDTH}%`);
76
- });
77
- arr.push(`black 100%`);
78
-
79
- setMaskCuttes(arr.toString());
80
- }, [chapters, duration]);
81
-
82
- return (
83
- <div className=' sb-w-full sb-h-2 sb-flex sb-items-center sb-justify-center'>
84
- <div className='sb-absolute sb-top-0 sb-left-0 sb-w-full sb-z-10'>
85
- <Slider
86
- value={timeSlider}
87
- handleValueChange={handleValueChange}
88
- handleSliderClick={handleSliderClick}
89
- min={MIN}
90
- max={MAX}
91
- style={{
92
- background: "transparent",
93
- }}
94
- />
95
- </div>
96
-
97
- <div
98
- className='sb-absolute sb-top-0 sb-left-0 sb-w-full sb-h-2 sb-bg-slate-400 sb-rounded-md'
99
- style={{
100
- background: `
17
+ const [timeSlider, setTimeSlider] = useState(0);
18
+
19
+ const { player, duration, downloadedBufferPercentage } =
20
+ useSoftBuildersVideoPlayerContext();
21
+
22
+ const handleValueChange = (e: React.ChangeEvent<HTMLInputElement>) => {
23
+ const newTimeSlider = Number(e.target.value);
24
+ setTimeSlider(newTimeSlider);
25
+ console.log("newTimeSlider: ", newTimeSlider);
26
+
27
+ const time = (newTimeSlider * duration) / DEFERENCE;
28
+ console.log("time: ", time);
29
+
30
+ player?.currentTime(time);
31
+ };
32
+
33
+ const handleSliderClick = (e: React.MouseEvent<HTMLDivElement>) => {
34
+ const slider = e.currentTarget; // Get the slider element
35
+ const rect = slider.getBoundingClientRect(); // Get the bounding rect of the slider
36
+ const offsetX = e.clientX - rect.left; // Get the click position relative to the slider
37
+ const newTimeSlider = (offsetX / rect.width) * DEFERENCE; // Calculate the new slider value
38
+
39
+ // Update the time using the same function
40
+ const time = (newTimeSlider * duration) / DEFERENCE;
41
+ player?.currentTime(time);
42
+ setTimeSlider(newTimeSlider); // Update the state to reflect the change
43
+ };
44
+
45
+ useEffect(() => {
46
+ const intervalId = setInterval(() => {
47
+ const currentTime = player?.currentTime() || 0;
48
+
49
+ const time = (currentTime * DEFERENCE) / duration;
50
+
51
+ setTimeSlider(time);
52
+ }, 1000);
53
+
54
+ // Cleanup function to clear the interval
55
+ return () => clearInterval(intervalId);
56
+ }, [player, duration]);
57
+ // useLayoutEffect(() => {
58
+ // const currentTime = player?.currentTime() || 0;
59
+
60
+ // const time = (currentTime * DEFERENCE) / duration;
61
+
62
+ // setTimeSlider(time);
63
+ // console.log("currentTime: ", time);
64
+ // }, []);
65
+
66
+ const [maskCuttes, setMaskCuttes] = useState("");
67
+
68
+ useEffect(() => {
69
+ const arr: string[] = ["black 0%"];
70
+ chapters?.forEach((c) => {
71
+ const startPercentage = Math.floor((c.startTime * 100) / duration);
72
+ const endPercentage = Math.floor((c.endTime * 100) / duration);
73
+ arr.push(`black ${startPercentage}%`);
74
+ arr.push(`transparent ${startPercentage}%`);
75
+ arr.push(`transparent ${startPercentage + BAR_PERCENTAGE_WIDTH}%`);
76
+
77
+ arr.push(`black ${startPercentage + BAR_PERCENTAGE_WIDTH}%`);
78
+ arr.push(`black ${endPercentage}%`);
79
+
80
+ arr.push(`transparent ${endPercentage}%`);
81
+ arr.push(`transparent ${endPercentage + BAR_PERCENTAGE_WIDTH}%`);
82
+
83
+ arr.push(`black ${endPercentage + BAR_PERCENTAGE_WIDTH}%`);
84
+ });
85
+ arr.push(`black 100%`);
86
+
87
+ setMaskCuttes(arr.toString());
88
+ }, [chapters, duration]);
89
+
90
+ return (
91
+ <div className=" sb-w-full sb-h-2 sb-flex sb-items-center sb-justify-center">
92
+ <div className="sb-absolute sb-top-0 sb-left-0 sb-w-full sb-z-10">
93
+ <Slider
94
+ value={timeSlider}
95
+ handleValueChange={handleValueChange}
96
+ handleSliderClick={handleSliderClick}
97
+ min={MIN}
98
+ max={MAX}
99
+ style={{
100
+ background: "transparent",
101
+ }}
102
+ />
103
+ </div>
104
+
105
+ <div
106
+ className="sb-absolute sb-top-0 sb-left-0 sb-w-full sb-h-2 sb-bg-slate-400 sb-rounded-md"
107
+ style={{
108
+ background: `
101
109
  linear-gradient(to right,
102
110
  #f97316 0%,
103
111
  #f97316 ${timeSlider}%,
@@ -107,16 +115,17 @@ const TimeSlider = ({ chapters }: Props) => {
107
115
  #30303030 100%
108
116
  )
109
117
  `,
110
- maskImage: `
118
+ maskImage: `
111
119
  linear-gradient(to right,
112
120
  ${maskCuttes}
113
121
  )
114
122
  `,
115
- maskSize: "100% 100%",
116
- maskRepeat: "no-repeat",
117
- }}></div>
118
- </div>
119
- );
123
+ maskSize: "100% 100%",
124
+ maskRepeat: "no-repeat",
125
+ }}
126
+ ></div>
127
+ </div>
128
+ );
120
129
  };
121
130
 
122
131
  export default TimeSlider;
@@ -17,6 +17,7 @@ export type Props<T = any> = {
17
17
  bottomRedBar?: boolean;
18
18
  childRef?: React.Ref<HTMLDivElement>;
19
19
  noteButtonClick?: (e: any) => void;
20
+ videoID?: string;
20
21
  };
21
22
  declare const VideoPlayerComponent: React.ForwardRefExoticComponent<Props<any> & React.RefAttributes<HTMLDivElement>>;
22
23
  export default VideoPlayerComponent;
@@ -4,11 +4,11 @@ import ReactDOM from "react-dom/client";
4
4
  import videojs from "video.js";
5
5
  import "video.js/dist/video-js.css";
6
6
  import ControlBar from "../ControlBar";
7
+ import { isEqual } from "lodash";
7
8
  import "./style/style.css";
8
9
  import "../../styles/tailwind.css";
9
10
  import { SoftBuildersVideoPlayerProvider } from "./provider";
10
11
  import BigPlayButton from "../BigPlayButton";
11
- import { isEqual } from "lodash";
12
12
  let bigPlayButtonRoot = {};
13
13
  const renderBigPlayButton = (id, player, isPaused, setIsPaused, opacity = "100") => {
14
14
  const container = document.getElementById(`video-container-${id}`);
@@ -27,29 +27,28 @@ const renderBigPlayButton = (id, player, isPaused, setIsPaused, opacity = "100")
27
27
  let controlBarRoot = {};
28
28
  const renderControlBar = (id, player, isPaused, setIsPaused, duration, notes, chapters, seekStep = 5, handleSaveNoteAction, opacity = "0", handleControlDisplayTimer = () => { }, bgColor = "transparent", setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote, setNoteOpen, noteButtonClick) => {
29
29
  const container = document.getElementById(`video-container-${id}`);
30
- console.log("container: ", container);
31
30
  if (container) {
32
- console.log("container1: ");
33
31
  container.style.height = "100%";
34
32
  container.style.aspectRatio = "16 / 9";
35
33
  const element = container.querySelector(".vjs-control-bar");
36
34
  if (element) {
37
- console.log("container2: ");
38
35
  if (!controlBarRoot[id]) {
36
+ console.log("pooklo");
39
37
  controlBarRoot[id] = ReactDOM.createRoot(element);
40
- element.style.display = "flex";
41
- element.style.height = "100%";
42
- element.style.alignItems = "flex-end";
43
38
  }
39
+ element.style.display = "flex";
44
40
  element.style.opacity = opacity;
45
41
  element.style.backgroundColor = `${bgColor} !important`;
42
+ element.style.height = "100%";
43
+ element.style.alignItems = "flex-end";
46
44
  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, setNoteOpen: setNoteOpen, noteButtonClick: noteButtonClick }) }));
47
45
  }
48
46
  }
49
47
  };
50
- const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTime = 0, handleSaveNoteAction, poster, onPlay, onPause, disableNote, childRef, bottomRedBar = true, noteButtonClick, }, ref) => {
48
+ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTime = 0, handleSaveNoteAction, poster, onPlay, onPause, disableNote, childRef, bottomRedBar = true, noteButtonClick, videoID, }) => {
51
49
  const videoRef = useRef(undefined);
52
50
  const playerRef = useRef(undefined);
51
+ const idRef = useRef(undefined);
53
52
  const [isReady, setIsReady] = useState(false);
54
53
  const [isPaused, setIsPaused] = useState(!options.autoplay);
55
54
  const [duration, setDuration] = useState(1);
@@ -58,14 +57,14 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
58
57
  const [bgColor, setBgColor] = useState("transparent");
59
58
  const [isQualityMenuOpen, setIsQualityMenuOpen] = useState(false);
60
59
  const [isSubtitleMenuOpen, setIsSubtitleMenuOpen] = useState(false);
60
+ const [isHovered, setIsHovered] = useState(false);
61
61
  const [isNoteOpen, setNoteOpen] = useState(false);
62
- console.log("notes", notes);
63
62
  const onReady = (player) => {
64
- console.log("onReady: ", onReady);
65
63
  if (playerRef) {
66
64
  playerRef.current = player;
67
65
  setIsReady(true);
68
66
  player === null || player === void 0 ? void 0 : player.currentTime(startTime);
67
+ console.log("startTime: ", startTime);
69
68
  player.on("waiting", () => { });
70
69
  player.on("dispose", () => {
71
70
  videojs.log("player will dispose");
@@ -77,41 +76,31 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
77
76
  });
78
77
  }
79
78
  };
80
- const initializePlayer = () => {
81
- const videoElement = document.createElement("video-js");
82
- videoElement.setAttribute("playsinline", "true");
83
- videoElement.classList.add("vjs-big-play-centered");
84
- if (poster) {
85
- videoElement.setAttribute("poster", poster);
86
- }
87
- videoRef.current.appendChild(videoElement);
88
- videoElement.style.width = "100%";
89
- videoElement.style.height = "100%";
90
- playerRef.current = videojs(videoElement, options, () => {
91
- var _a;
92
- (_a = playerRef.current) === null || _a === void 0 ? void 0 : _a.currentTime(startTime);
93
- });
94
- onReady(playerRef.current);
95
- };
96
79
  useEffect(() => {
97
- if (playerRef.current) {
98
- if (!isEqual(playerRef.current.poster_, poster)) {
99
- playerRef.current.dispose();
100
- console.log("dispose: ");
101
- playerRef.current = undefined;
80
+ if (!playerRef.current) {
81
+ const videoElement = document.createElement("video-js");
82
+ videoElement.setAttribute("playsinline", "true");
83
+ videoElement.classList.add("vjs-big-play-centered");
84
+ // Set the poster attribute here
85
+ if (poster) {
86
+ videoElement.setAttribute("poster", poster);
102
87
  }
88
+ videoRef.current.appendChild(videoElement);
89
+ videoElement.style.width = "100%";
90
+ videoElement.style.height = "100%";
91
+ videoElement.style.objectFit = "cover";
92
+ playerRef.current = videojs(videoElement, options, () => {
93
+ onReady(playerRef.current);
94
+ });
103
95
  }
104
- initializePlayer();
105
- console.log("initializePlayer: ghhh");
106
- }, [options]);
107
- useEffect(() => {
108
96
  return () => {
97
+ var _a, _b;
109
98
  if (playerRef.current) {
110
- console.log(playerRef.current, options, "jk");
111
- if (!isEqual(playerRef.current.poster_, poster)) {
99
+ if (!isEqual((_b = (_a = idRef === null || idRef === void 0 ? void 0 : idRef.current) === null || _a === void 0 ? void 0 : _a.sources) !== null && _b !== void 0 ? _b : "", options.sources)) {
100
+ idRef.current = options;
112
101
  playerRef.current.dispose();
113
- console.log("dispose7: ");
114
102
  playerRef.current = undefined;
103
+ console.log("dispose8: ");
115
104
  setTimeout(() => {
116
105
  if (bigPlayButtonRoot[id]) {
117
106
  bigPlayButtonRoot[id].unmount();
@@ -123,12 +112,30 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
123
112
  }
124
113
  }, 0);
125
114
  }
115
+ // setTimeout(() => {
116
+ // if (bigPlayButtonRoot[id]) {
117
+ // bigPlayButtonRoot[id].unmount();
118
+ // bigPlayButtonRoot[id] = undefined;
119
+ // }
120
+ // if (controlBarRoot[id]) {
121
+ // controlBarRoot[id].unmount();
122
+ // controlBarRoot[id] = undefined;
123
+ // }
124
+ // }, 0);
126
125
  }
127
126
  };
128
127
  }, [options]);
128
+ // Added poster to dependency array
129
+ useEffect(() => {
130
+ if (playerRef.current) {
131
+ console.log("time");
132
+ playerRef.current.currentTime(startTime);
133
+ }
134
+ }, [startTime]);
129
135
  useEffect(() => {
130
136
  if (playerRef.current && isReady) {
131
137
  const currentTime = playerRef.current.currentTime() || 0;
138
+ console.log("currentTime: ", currentTime);
132
139
  if (isPaused) {
133
140
  if (onPause)
134
141
  onPause(currentTime);
@@ -138,28 +145,22 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
138
145
  onPlay(currentTime);
139
146
  }
140
147
  }
141
- }, [isPaused, isReady]);
148
+ }, [isPaused]);
142
149
  useEffect(() => {
143
- if (isReady) {
144
- const controlBarTimeout = setTimeout(() => {
145
- console.log("isReady: ", isReady);
146
- renderControlBar(id, playerRef.current, isPaused, setIsPaused, duration, notes, chapters, 5, handleSaveNoteAction, opacity, (e) => {
147
- handlePlayerClick(e, true);
148
- }, bgColor, setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote, setNoteOpen, noteButtonClick);
149
- }, 0);
150
- return () => clearTimeout(controlBarTimeout);
151
- }
150
+ const controlBarTimeout = setTimeout(() => {
151
+ renderControlBar(id, playerRef.current, isPaused, setIsPaused, duration, notes, chapters, 5, handleSaveNoteAction, opacity, (e) => {
152
+ handlePlayerClick(e, true);
153
+ }, bgColor, setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote, setNoteOpen, noteButtonClick);
154
+ }, 0);
155
+ return () => clearTimeout(controlBarTimeout);
152
156
  }, [
153
- id,
154
- playerRef,
155
157
  isPaused,
156
158
  setIsPaused,
157
159
  notes,
158
- chapters,
159
- isReady,
160
160
  handleSaveNoteAction,
161
161
  duration,
162
162
  opacity,
163
+ isReady,
163
164
  ]);
164
165
  useEffect(() => {
165
166
  if (isReady) {
@@ -168,22 +169,9 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
168
169
  }, 500);
169
170
  return () => clearTimeout(playButtonTimeout);
170
171
  }
171
- }, [id, isPaused, isReady, opacity, options, notes]);
172
+ }, [isPaused, opacity, isReady, options]);
172
173
  useEffect(() => {
173
174
  if (playerRef.current) {
174
- playerRef.current.dispose();
175
- console.log("dispose7: ");
176
- playerRef.current = undefined;
177
- setTimeout(() => {
178
- if (bigPlayButtonRoot[id]) {
179
- bigPlayButtonRoot[id].unmount();
180
- bigPlayButtonRoot[id] = undefined;
181
- }
182
- if (controlBarRoot[id]) {
183
- controlBarRoot[id].unmount();
184
- controlBarRoot[id] = undefined;
185
- }
186
- }, 0);
187
175
  const intervalId = setInterval(() => {
188
176
  if (playerRef.current)
189
177
  setIsPaused(playerRef.current.paused());
@@ -191,14 +179,23 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
191
179
  return () => clearInterval(intervalId);
192
180
  }
193
181
  }, []);
194
- useEffect(() => {
195
- var _a, _b;
196
- if (playerRef.current) {
197
- (_a = playerRef.current) === null || _a === void 0 ? void 0 : _a.currentTime(startTime);
198
- console.log("startTimenotes: ", startTime);
199
- (_b = playerRef.current) === null || _b === void 0 ? void 0 : _b.play();
200
- }
201
- }, [startTime]);
182
+ // useEffect(() => {
183
+ // return () => {
184
+ // if (playerRef.current) {
185
+ // playerRef.current.dispose();
186
+ // playerRef.current = undefined;
187
+ // // Cleanup play button and control bar renders
188
+ // if (bigPlayButtonRoot[id]) {
189
+ // bigPlayButtonRoot[id].unmount();
190
+ // bigPlayButtonRoot[id] = undefined;
191
+ // }
192
+ // if (controlBarRoot[id]) {
193
+ // controlBarRoot[id].unmount();
194
+ // controlBarRoot[id] = undefined;
195
+ // }
196
+ // }
197
+ // };
198
+ // }, []);
202
199
  const timeoutRef = useRef(null);
203
200
  useEffect(() => {
204
201
  if (isQualityMenuOpen || isSubtitleMenuOpen) {
@@ -218,8 +215,21 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
218
215
  }
219
216
  }, [isQualityMenuOpen, isSubtitleMenuOpen]);
220
217
  useEffect(() => {
221
- console.log("notes: ", notes);
222
- }, [notes]);
218
+ console.log("isNoteOpen: ", isNoteOpen);
219
+ if (isNoteOpen) {
220
+ if (timeoutRef.current) {
221
+ clearTimeout(timeoutRef.current);
222
+ }
223
+ }
224
+ else {
225
+ if (timeoutRef.current) {
226
+ clearTimeout(timeoutRef.current);
227
+ }
228
+ timeoutRef.current = setTimeout(() => {
229
+ setIsControlBarPresent(false);
230
+ }, 3000);
231
+ }
232
+ }, [isNoteOpen]);
223
233
  const handlePlayerClick = async (e, isTimerOnly = false) => {
224
234
  e.preventDefault();
225
235
  if (timeoutRef.current) {
@@ -243,8 +253,6 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
243
253
  if (playerRef.current) {
244
254
  if (playerRef.current.paused()) {
245
255
  try {
246
- // startTime && playerRef.current.currentTime(startTime);
247
- console.log("startTime: ", startTime);
248
256
  await playerRef.current.play();
249
257
  setIsPaused(false);
250
258
  }
@@ -292,9 +300,10 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
292
300
  const [timeSeeker, setTimeSeeker] = useState("0");
293
301
  useEffect(() => {
294
302
  const updateTimeSeeker = () => {
295
- if (playerRef.current) {
303
+ if (playerRef.current && isReady) {
296
304
  const currentTime = playerRef.current.currentTime();
297
305
  const duration = playerRef.current.duration();
306
+ console.log("duration: ", duration, currentTime);
298
307
  if (duration && currentTime !== undefined) {
299
308
  setTimeSeeker(`${(currentTime / duration) * 100}%`);
300
309
  }
@@ -306,9 +315,9 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
306
315
  const interval = setInterval(updateTimeSeeker, 500); // Update every 500ms
307
316
  return () => clearInterval(interval); // Cleanup interval on unmount
308
317
  }, [playerRef]);
309
- return (_jsxs("div", { ref: videoRefs, id: `video-container-${id}`, onMouseMove: (e) => {
310
- handlePlayerClick(e, true);
311
- }, className: "sb-relative sb-rounded-md sb-overflow-hidden sb-w-full sb-h-full sb-bottom-2 ", children: [bottomRedBar && (_jsx("div", { ref: childRef, onClick: handlePlayerClick, className: `sb-h-[3px] sb-transition-opacity sb-duration-500 sb-delay-400 sb-z-10 ease-in-out sb-border-spacing-x-2 sb-absolute sb-bg-[red] sb-bottom-0 ${opacity == "100" ? "sb-opacity-0" : "sb-opacity-100"}`, style: {
318
+ return (_jsxs("div", { ref: videoRefs, id: `video-container-${id}`, onMouseMove: () => {
319
+ !isNoteOpen ? handlePlayerClick(event, true) : "";
320
+ }, className: "sb-relative sb-rounded-md sb-overflow-hidden sb-w-full sb-h-full sb-bottom-2 ", onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false), children: [bottomRedBar && (_jsx("div", { ref: childRef, onClick: handlePlayerClick, className: `sb-h-[3px] sb-transition-opacity sb-duration-500 sb-delay-400 sb-z-10 ease-in-out sb-border-spacing-x-2 sb-absolute sb-bg-[red] sb-bottom-0 ${opacity == "100" ? "sb-opacity-0" : "sb-opacity-100"}`, style: {
312
321
  width: timeSeeker,
313
322
  } })), _jsx("div", { className: "hover:sb-cursor-pointer sb-w-full sb-h-full", "data-vjs-player": true, children: _jsx("div", { onClick: handlePlayerClick, ref: videoRef, className: "sb-h-full sb-w-full sb-relative" }) })] }));
314
323
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/VideoPlayerComponent/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OA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