softbuilders-react-video-player 1.2.8 → 1.2.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,7 @@ const Component = forwardRef(({ options, notes, chapters, startTime = 0, handleS
47
47
  getTracks();
48
48
  }, [options === null || options === void 0 ? void 0 : options.tracks]);
49
49
  const id = (Date.now() + Math.random() * 100).toString();
50
- return (_jsx(VideoPlayerComponent, { id: videoId, chapters: chapters, options: Object.assign(Object.assign({}, options), { tracks }), notes: notes, poster: "", startTime: startTime, handleSaveNoteAction: handleSaveNoteAction, disableNote: disableNote, onPause: onPause, onPlay: onPlay, childRef: childRef, bottomRedBar: bottomRedBar, noteButtonClick: noteButtonClick }));
50
+ return (_jsx(VideoPlayerComponent, { id: videoId || "", chapters: chapters, options: Object.assign(Object.assign({}, options), { tracks }), notes: notes, poster: "", startTime: startTime, handleSaveNoteAction: handleSaveNoteAction, disableNote: disableNote, onPause: onPause, onPlay: onPlay, childRef: childRef, bottomRedBar: bottomRedBar, noteButtonClick: noteButtonClick }));
51
51
  });
52
52
  const SoftBuildersVideoPlayer = memo(Component, (prevProps, nextProps) => {
53
53
  return (isEqual(prevProps.options, nextProps.options) &&
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SoftBuildersVideoPlayer/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAO3D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,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,M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AK,SAAS,CAAC,SAAS,CAC5C,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
@@ -98,7 +98,7 @@ const Component = forwardRef<HTMLDivElement, Props<any>>(
98
98
 
99
99
  return (
100
100
  <VideoPlayerComponent
101
- id={videoId}
101
+ id={videoId || ""}
102
102
  chapters={chapters}
103
103
  options={{ ...options, tracks }}
104
104
  notes={notes}
@@ -11,9 +11,7 @@ const TimeSlider = ({ chapters }) => {
11
11
  const handleValueChange = (e) => {
12
12
  const newTimeSlider = Number(e.target.value);
13
13
  setTimeSlider(newTimeSlider);
14
- console.log("newTimeSlider: ", newTimeSlider);
15
14
  const time = (newTimeSlider * duration) / DEFERENCE;
16
- console.log("time: ", time);
17
15
  player === null || player === void 0 ? void 0 : player.currentTime(time);
18
16
  };
19
17
  const handleSliderClick = (e) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TimeSlider/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAmB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAIrF,MAAM,GAAG,GAAG,CAAC,EACX,GAAG,GAAG,GAAG,CAAC;AACZ,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;AACtC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAMjC,MAAM,UAAU,GAAG,CAAC,EAAE,QAAQ,EAAS,EAAE,EAAE;IACzC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEhD,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,0BAA0B,EAAE,GACpD,iCAAiC,EAAE,CAAC;IAEtC,MAAM,iBAAiB,GAAG,CAAC,CAAsC,EAAE,EAA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CAAC,SAAS,eAAe,GAAG,oBAAoB,GAAG,CAAC,CAAC;YAC7D,GAAG,CAAC,IAAI,CAAC,SAAS,aAAa,GAAG,CAAC,CAAC;YAEpC,GAAG,CAAC,IAAI,CAAC,eAAe,aAAa,GAAG,CAAC,CAAC;YAC1C,GAAG,CAAC,IAAI,CAAC,eAAe,aAAa,GAAG,oBAAoB,GAAG,CAAC,CAAC;YAEjE,GAAG,CAAC,IAAI,CAAC,SAAS,aAAa,GAAG,oBAAoB,GAAG,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;QACH,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAEvB,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;IAChC,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEzB,OAAO,CACL,eAAK,SAAS,EAAC,6DAA6D,aAC1E,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,MAAM,IACL,KAAK,EAAE,UAAU,EACjB,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,KAAK,EAAE;wBACL,UAAU,EAAE,aAAa;qBAC1B,GACD,GACE,EAEN,cACE,SAAS,EAAC,+EAA+E,EACzF,KAAK,EAAE;oBACL,UAAU,EAAE;;;sBAGA,UAAU;wBACR,UAAU;wBACV,0BAA0B;wBAC1B,UAAU;;;SAGzB;oBACC,SAAS,EAAE;;cAEP,UAAU;;SAEf;oBACC,QAAQ,EAAE,WAAW;oBACrB,UAAU,EAAE,WAAW;iBACxB,GACI,IACH,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -22,10 +22,8 @@ const TimeSlider = ({ chapters }: Props) => {
22
22
  const handleValueChange = (e: React.ChangeEvent<HTMLInputElement>) => {
23
23
  const newTimeSlider = Number(e.target.value);
24
24
  setTimeSlider(newTimeSlider);
25
- console.log("newTimeSlider: ", newTimeSlider);
26
25
 
27
26
  const time = (newTimeSlider * duration) / DEFERENCE;
28
- console.log("time: ", time);
29
27
 
30
28
  player?.currentTime(time);
31
29
  };
package/dist/index.mjs CHANGED
@@ -1040,9 +1040,7 @@ var TimeSlider = ({ chapters }) => {
1040
1040
  const handleValueChange = (e) => {
1041
1041
  const newTimeSlider = Number(e.target.value);
1042
1042
  setTimeSlider(newTimeSlider);
1043
- console.log("newTimeSlider: ", newTimeSlider);
1044
1043
  const time = newTimeSlider * duration / DEFERENCE;
1045
- console.log("time: ", time);
1046
1044
  player == null ? void 0 : player.currentTime(time);
1047
1045
  };
1048
1046
  const handleSliderClick = (e) => {
@@ -2030,7 +2028,7 @@ var Component = forwardRef2(
2030
2028
  return /* @__PURE__ */ jsx37(
2031
2029
  VideoPlayerComponent_default,
2032
2030
  {
2033
- id: videoId,
2031
+ id: videoId || "",
2034
2032
  chapters,
2035
2033
  options: __spreadProps(__spreadValues({}, options), { tracks }),
2036
2034
  notes,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "softbuilders-react-video-player",
3
3
  "description": "Standalone video player component",
4
- "version": "1.2.8",
4
+ "version": "1.2.10",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
@@ -34,6 +34,7 @@
34
34
  "@swc/core": "^1.7.26",
35
35
  "@types/react": "^18.3.5",
36
36
  "@types/react-dom": "^18.3.0",
37
+ "@types/uuid": "^10.0.0",
37
38
  "@types/video.js": "^7.3.58",
38
39
  "autoprefixer": "^10.4.20",
39
40
  "concurrently": "^9.0.1",