softbuilders-react-video-player 1.2.13 → 1.2.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. package/dist/components/BigPlayButton/index.d.ts +4 -1
  2. package/dist/components/BigPlayButton/index.js +4 -2
  3. package/dist/components/BigPlayButton/index.js.map +1 -1
  4. package/dist/components/BigPlayButton/index.tsx +18 -3
  5. package/dist/components/ControlBar/index.d.ts +2 -1
  6. package/dist/components/ControlBar/index.js +16 -12
  7. package/dist/components/ControlBar/index.js.map +1 -1
  8. package/dist/components/ControlBar/index.tsx +58 -46
  9. package/dist/components/QualityMenu/index.d.ts +2 -1
  10. package/dist/components/QualityMenu/index.js +6 -6
  11. package/dist/components/QualityMenu/index.js.map +1 -1
  12. package/dist/components/QualityMenu/index.tsx +13 -5
  13. package/dist/components/Slider/index.js +1 -1
  14. package/dist/components/Slider/index.js.map +1 -1
  15. package/dist/components/Slider/index.tsx +36 -36
  16. package/dist/components/SoftBuildersVideoPlayer/index.d.ts +2 -0
  17. package/dist/components/SoftBuildersVideoPlayer/index.js +2 -2
  18. package/dist/components/SoftBuildersVideoPlayer/index.js.map +1 -1
  19. package/dist/components/SoftBuildersVideoPlayer/index.tsx +6 -0
  20. package/dist/components/SubtitleMenu/index.d.ts +2 -1
  21. package/dist/components/SubtitleMenu/index.js +2 -2
  22. package/dist/components/SubtitleMenu/index.js.map +1 -1
  23. package/dist/components/SubtitleMenu/index.tsx +6 -2
  24. package/dist/components/TimeSlider/index.js.map +1 -1
  25. package/dist/components/TimeSlider/index.tsx +0 -1
  26. package/dist/components/VideoPlayerComponent/index.d.ts +2 -0
  27. package/dist/components/VideoPlayerComponent/index.js +33 -19
  28. package/dist/components/VideoPlayerComponent/index.js.map +1 -1
  29. package/dist/components/VideoPlayerComponent/index.tsx +76 -40
  30. package/dist/components/VolumeSlider/index.d.ts +2 -1
  31. package/dist/components/VolumeSlider/index.js +29 -8
  32. package/dist/components/VolumeSlider/index.js.map +1 -1
  33. package/dist/components/VolumeSlider/index.tsx +57 -15
  34. package/dist/components/icons/SubIcon.js +1 -1
  35. package/dist/components/icons/SubIcon.js.map +1 -1
  36. package/dist/components/icons/SubIcon.tsx +27 -28
  37. package/dist/components/icons/VolumeHigh.d.ts +3 -0
  38. package/dist/components/icons/VolumeHigh.js +4 -0
  39. package/dist/components/icons/VolumeHigh.js.map +1 -0
  40. package/dist/components/icons/VolumeHigh.tsx +15 -0
  41. package/dist/components/icons/VolumeHighIcon.d.ts +3 -0
  42. package/dist/components/icons/VolumeHighIcon.js +4 -0
  43. package/dist/components/icons/VolumeHighIcon.js.map +1 -0
  44. package/dist/components/icons/VolumeHighIcon.tsx +16 -0
  45. package/dist/components/icons/VolumeIconHigh.d.ts +3 -0
  46. package/dist/components/icons/VolumeIconHigh.js +4 -0
  47. package/dist/components/icons/VolumeIconHigh.js.map +1 -0
  48. package/dist/components/icons/VolumeIconHigh.tsx +16 -0
  49. package/dist/components/icons/VolumeIconLow copy.d.ts +3 -0
  50. package/dist/components/icons/VolumeIconLow copy.js +4 -0
  51. package/dist/components/icons/VolumeIconLow copy.js.map +1 -0
  52. package/dist/components/icons/VolumeIconLow copy.tsx +17 -0
  53. package/dist/components/icons/VolumeLow.d.ts +3 -0
  54. package/dist/components/icons/VolumeLow.js +4 -0
  55. package/dist/components/icons/VolumeLow.js.map +1 -0
  56. package/dist/components/icons/VolumeLow.tsx +14 -0
  57. package/dist/components/icons/VolumeLowIcon.d.ts +3 -0
  58. package/dist/components/icons/VolumeLowIcon.js +4 -0
  59. package/dist/components/icons/VolumeLowIcon.js.map +1 -0
  60. package/dist/components/icons/VolumeLowIcon.tsx +15 -0
  61. package/dist/components/icons/VolumeMute.d.ts +3 -0
  62. package/dist/components/icons/VolumeMute.js +10 -0
  63. package/dist/components/icons/VolumeMute.js.map +1 -0
  64. package/dist/components/icons/VolumeMute.tsx +25 -0
  65. package/dist/components/icons/VolumeVLow.d.ts +3 -0
  66. package/dist/components/icons/VolumeVLow.js +4 -0
  67. package/dist/components/icons/VolumeVLow.js.map +1 -0
  68. package/dist/components/icons/VolumeVLow.tsx +14 -0
  69. package/dist/components/icons/index.d.ts +4 -0
  70. package/dist/components/icons/index.js +4 -0
  71. package/dist/components/icons/index.js.map +1 -1
  72. package/dist/components/icons/index.ts +19 -15
  73. package/dist/index.css +17 -2
  74. package/dist/index.d.mts +4 -1
  75. package/dist/index.mjs +369 -261
  76. package/dist/styles/tailwind.css +17 -2
  77. package/dist/types.d.ts +2 -1
  78. package/package.json +1 -1
@@ -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,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC,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;AAkBF,MAAM,SAAS,GAAG,UAAU,CAC1B,CAAC,EACC,OAAO,EACP,KAAK,EACL,QAAQ,EACR,SAAS,GAAG,CAAC,EACb,oBAAoB,EACpB,MAAM,EACN,OAAO,EACP,SAAS,GAAG,IAAI,EAChB,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,OAAO,GACI,EAAE,EAAE;IACf,OAAO,GAAG,gCACL,OAAO,KACV,UAAU,EAAE,IAAI,EAChB,iBAAiB,EAAE,CAAC,EACpB,UAAU,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AAC,OAAO,CAAC;QAC7C,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"}
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,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC,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;AAoBF,MAAM,SAAS,GAAG,UAAU,CAC1B,CAAC,EACC,OAAO,EACP,KAAK,EACL,QAAQ,EACR,SAAS,GAAG,CAAC,EACb,oBAAoB,EACpB,MAAM,EACN,OAAO,EACP,SAAS,GAAG,IAAI,EAChB,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,MAAM,GACK,EAAE,EAAE;IACf,OAAO,GAAG,gCACL,OAAO,KACV,UAAU,EAAE,IAAI,EAChB,iBAAiB,EAAE,CAAC,EACpB,UAAU,EAAE;YACV,YAAY,EAAE,MAAM;SACrB,GACK,CAAC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,CAAC,OAAO,CAAC;QAC7C,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"}
@@ -35,6 +35,8 @@ export type Props<T = any> = {
35
35
  childRef?: React.Ref<HTMLDivElement>;
36
36
  noteButtonClick?: (e: any) => void;
37
37
  videoId?: string;
38
+ isTrailer?: boolean;
39
+ height?: number;
38
40
  };
39
41
 
40
42
  const Component = forwardRef<HTMLDivElement, Props<any>>(
@@ -52,6 +54,8 @@ const Component = forwardRef<HTMLDivElement, Props<any>>(
52
54
  bottomRedBar,
53
55
  noteButtonClick,
54
56
  videoId,
57
+ isTrailer = false,
58
+ height,
55
59
  }: Props<any>) => {
56
60
  options = {
57
61
  ...options,
@@ -117,6 +121,8 @@ const Component = forwardRef<HTMLDivElement, Props<any>>(
117
121
  childRef={childRef}
118
122
  bottomRedBar={bottomRedBar}
119
123
  noteButtonClick={noteButtonClick}
124
+ isTrailer={isTrailer}
125
+ height={height}
120
126
  />
121
127
  );
122
128
  }
@@ -3,6 +3,7 @@ type SubtitleMenuProps = {
3
3
  onClick: (e: any, isOpen: boolean) => void;
4
4
  onMouseEnter?: () => void;
5
5
  onMouseLeave?: () => void;
6
+ isTrailer?: boolean;
6
7
  };
7
- declare const SubtitleMenu: ({ width, onClick, onMouseEnter, onMouseLeave, }: SubtitleMenuProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const SubtitleMenu: ({ width, onClick, onMouseEnter, onMouseLeave, isTrailer, }: SubtitleMenuProps) => import("react/jsx-runtime").JSX.Element;
8
9
  export default SubtitleMenu;
@@ -9,7 +9,7 @@ const SubtitleOption = ({ isSelected, subtitle, onClick, }) => {
9
9
  onClick(e);
10
10
  }, children: _jsxs("div", { className: "sb-grid sb-grid-cols-12 sb-items-center sb-gap-2", children: [_jsx("div", { className: "sb-col-span-3", children: isSelected ? _jsx(CheckedIcon, { className: "sb-w-5 sb-h-5" }) : _jsx("div", {}) }), _jsx("p", { className: "sb-text-left sb-col-span-9", children: subtitle.label })] }) }));
11
11
  };
12
- const SubtitleMenu = ({ width, onClick, onMouseEnter, onMouseLeave, }) => {
12
+ const SubtitleMenu = ({ width, onClick, onMouseEnter, onMouseLeave, isTrailer, }) => {
13
13
  const { player } = useSoftBuildersVideoPlayerContext();
14
14
  const [closeMenuFunction, setCloseMenuFunction] = useState(undefined);
15
15
  const [subtitles, setSubtitles] = useState([]);
@@ -34,7 +34,7 @@ const SubtitleMenu = ({ width, onClick, onMouseEnter, onMouseLeave, }) => {
34
34
  }, [player]);
35
35
  return (_jsx(MenuButton, { onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onClick: (e, isOpen) => {
36
36
  onClick && onClick(e, isOpen);
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
37
+ }, classContainer: `${width < 400 || isTrailer ? "!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 && !isTrailer
38
38
  ? "sb-w-[150px] sb-py-5"
39
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) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SubtitleMenu/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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"}
@@ -37,6 +37,7 @@ type SubtitleMenuProps = {
37
37
  onClick: (e: any, isOpen: boolean) => void;
38
38
  onMouseEnter?: () => void;
39
39
  onMouseLeave?: () => void;
40
+ isTrailer?: boolean;
40
41
  };
41
42
 
42
43
  const SubtitleMenu = ({
@@ -44,6 +45,7 @@ const SubtitleMenu = ({
44
45
  onClick,
45
46
  onMouseEnter,
46
47
  onMouseLeave,
48
+ isTrailer,
47
49
  }: SubtitleMenuProps) => {
48
50
  const { player } = useSoftBuildersVideoPlayerContext();
49
51
 
@@ -81,12 +83,14 @@ const SubtitleMenu = ({
81
83
  onClick={(e: any, isOpen: boolean) => {
82
84
  onClick && onClick(e, isOpen);
83
85
  }}
84
- classContainer={`${width < 400 ? "!sb-top-8 -sb-left-9" : ""}`}
86
+ classContainer={`${
87
+ width < 400 || isTrailer ? "!sb-top-8 -sb-left-9" : ""
88
+ }`}
85
89
  buttonContent={<SubIcon className="sb-w-4 sb-h-4 sb-text-white " />}
86
90
  menuContent={
87
91
  <div
88
92
  className={`sb-rounded-md sb-bg-[#303030] sb-bg-opacity-50 ${
89
- width > 400
93
+ width > 400 && !isTrailer
90
94
  ? "sb-w-[150px] sb-py-5"
91
95
  : "sb-w-[90px] sb-items-center sb-justify-center sb-py-1"
92
96
  }`}
@@ -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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,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"}
@@ -2,7 +2,6 @@ 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
- import log from "video.js/dist/types/utils/log";
6
5
 
7
6
  const MIN = 0,
8
7
  MAX = 100;
@@ -18,6 +18,8 @@ export type Props<T = any> = {
18
18
  childRef?: React.Ref<HTMLDivElement>;
19
19
  noteButtonClick?: (e: any) => void;
20
20
  videoID?: string;
21
+ isTrailer?: boolean;
22
+ height?: number;
21
23
  };
22
24
  declare const VideoPlayerComponent: React.ForwardRefExoticComponent<Props<any> & React.RefAttributes<HTMLDivElement>>;
23
25
  export default VideoPlayerComponent;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { forwardRef, useEffect, useRef, useState } from "react";
3
3
  import ReactDOM from "react-dom/client";
4
4
  import videojs from "video.js";
@@ -10,7 +10,7 @@ import "../../styles/tailwind.css";
10
10
  import { SoftBuildersVideoPlayerProvider } from "./provider";
11
11
  import BigPlayButton from "../BigPlayButton";
12
12
  let bigPlayButtonRoot = {};
13
- const renderBigPlayButton = (id, player, isPaused, setIsPaused, opacity = "100") => {
13
+ const renderBigPlayButton = (id, player, isPaused, setIsPaused, opacity = "100", height, heightValue) => {
14
14
  const container = document.getElementById(`video-container-${id}`);
15
15
  if (container) {
16
16
  container.style.height = "100%";
@@ -20,12 +20,12 @@ const renderBigPlayButton = (id, player, isPaused, setIsPaused, opacity = "100")
20
20
  if (!bigPlayButtonRoot[id]) {
21
21
  bigPlayButtonRoot[id] = ReactDOM.createRoot(element);
22
22
  }
23
- bigPlayButtonRoot[id].render(_jsx(BigPlayButton, { player: player, isPaused: isPaused, setIsPaused: setIsPaused }));
23
+ bigPlayButtonRoot[id].render(_jsx(BigPlayButton, { player: player, isPaused: isPaused, setIsPaused: setIsPaused, height: height, heightValue: heightValue }));
24
24
  }
25
25
  }
26
26
  };
27
27
  let controlBarRoot = {};
28
- const renderControlBar = (id, player, isPaused, setIsPaused, duration, notes, chapters, seekStep = 5, handleSaveNoteAction, opacity = "0", handleControlDisplayTimer = () => { }, bgColor = "transparent", setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote, setNoteOpen, noteButtonClick) => {
28
+ const renderControlBar = (id, player, isPaused, setIsPaused, duration, notes, chapters, seekStep = 5, handleSaveNoteAction, opacity = "0", handleControlDisplayTimer = () => { }, bgColor = "transparent", setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote, setNoteOpen, noteButtonClick, isTrailer) => {
29
29
  const container = document.getElementById(`video-container-${id}`);
30
30
  if (container) {
31
31
  container.style.height = "100%";
@@ -40,11 +40,11 @@ const renderControlBar = (id, player, isPaused, setIsPaused, duration, notes, ch
40
40
  element.style.backgroundColor = `${bgColor} !important`;
41
41
  element.style.height = "100%";
42
42
  element.style.alignItems = "flex-end";
43
- 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 }) }));
43
+ 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, isTrailer: isTrailer }) }));
44
44
  }
45
45
  }
46
46
  };
47
- const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTime = 0, handleSaveNoteAction, poster, onPlay, onPause, disableNote, childRef, bottomRedBar = true, noteButtonClick, videoID, }, ref) => {
47
+ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTime = 0, handleSaveNoteAction, poster, onPlay, onPause, disableNote, childRef, bottomRedBar = true, noteButtonClick, videoID, isTrailer, height, }, ref) => {
48
48
  const videoRef = useRef(undefined);
49
49
  const playerRef = useRef(undefined);
50
50
  const idRef = useRef(undefined);
@@ -58,6 +58,7 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
58
58
  const [isSubtitleMenuOpen, setIsSubtitleMenuOpen] = useState(false);
59
59
  const [isHovered, setIsHovered] = useState(false);
60
60
  const [isNoteOpen, setNoteOpen] = useState(false);
61
+ const [heightValue, setHeightValue] = useState(0);
61
62
  const onReady = (player) => {
62
63
  if (playerRef) {
63
64
  playerRef.current = player;
@@ -190,7 +191,7 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
190
191
  const controlBarTimeout = setTimeout(() => {
191
192
  renderControlBar(id, playerRef.current, isPaused, setIsPaused, duration, notes, chapters, 5, handleSaveNoteAction, opacity, (e) => {
192
193
  handlePlayerClick(e, true);
193
- }, bgColor, setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote, setNoteOpen, noteButtonClick);
194
+ }, bgColor, setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote, setNoteOpen, noteButtonClick, isTrailer);
194
195
  }, 0);
195
196
  return () => clearTimeout(controlBarTimeout);
196
197
  }, [
@@ -206,11 +207,11 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
206
207
  useEffect(() => {
207
208
  if (isReady) {
208
209
  const playButtonTimeout = setTimeout(() => {
209
- renderBigPlayButton(id, playerRef.current, isPaused, setIsPaused, opacity);
210
+ renderBigPlayButton(id, playerRef.current, isPaused, setIsPaused, opacity, height, heightValue);
210
211
  }, 500);
211
212
  return () => clearTimeout(playButtonTimeout);
212
213
  }
213
- }, [isPaused, opacity, isReady, id]);
214
+ }, [isPaused, opacity, isReady, id, height, heightValue]);
214
215
  useEffect(() => {
215
216
  if (playerRef.current) {
216
217
  const intervalId = setInterval(() => {
@@ -279,11 +280,11 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
279
280
  setIsControlBarPresent(true);
280
281
  // setBgColor("rgba(200, 200, 200, 0.5)");
281
282
  // not using now
282
- timeoutRef.current = setTimeout(() => {
283
- setOpacity("0");
284
- setBgColor("transparent");
285
- setIsControlBarPresent(false);
286
- }, 3000);
283
+ // timeoutRef.current = setTimeout(() => {
284
+ // setOpacity("0");
285
+ // setBgColor("transparent");
286
+ // setIsControlBarPresent(false);
287
+ // }, 3000);
287
288
  if (isTimerOnly) {
288
289
  return;
289
290
  }
@@ -354,11 +355,24 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
354
355
  const interval = setInterval(updateTimeSeeker, 500); // Update every 500ms
355
356
  return () => clearInterval(interval); // Cleanup interval on unmount
356
357
  }, [playerRef]);
357
- return (_jsxs("div", { ref: videoRefs, id: `video-container-${id}`, onMouseMove: () => {
358
- !isNoteOpen ? handlePlayerClick(event, true) : "";
359
- }, 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: {
360
- width: timeSeeker,
361
- } })), _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" }) })] }));
358
+ const container = document.getElementById(`video-container-${id}`);
359
+ function handleWidthChange(height) {
360
+ setHeightValue(height);
361
+ }
362
+ const resizeObserver = new ResizeObserver((entries) => {
363
+ for (let entry of entries) {
364
+ const currentHeight = entry.contentRect.height;
365
+ handleWidthChange(currentHeight); // Call the action when width changes
366
+ }
367
+ });
368
+ // Start observing the element
369
+ container &&
370
+ resizeObserver.observe(container && container.querySelector(".vjs-control-bar"));
371
+ return (_jsx(_Fragment, { children: _jsxs("div", { ref: videoRefs, id: `video-container-${id}`, onMouseMove: () => {
372
+ !isNoteOpen ? handlePlayerClick(event, true) : "";
373
+ }, 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: {
374
+ width: timeSeeker,
375
+ } })), _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" }) })] }) }));
362
376
  });
363
377
  export default VideoPlayerComponent;
364
378
  //# sourceMappingURL=index.js.map
@@ -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,OAAO,OAAO,MAAM,UAAU,CAAC;AAE/B,OAAO,4BAA4B,CAAC;AACpC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAOjC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,IAAI,iBAAiB,GAEjB,EAAE,CAAC;AACP,MAAM,mBAAmB,GAAG,CAC1B,EAAU,EACV,MAA0B,EAC1B,QAAiB,EACjB,WAA0D,EAC1D,UAAkB,KAAK,EACvB,EAAE;IACF,MAAM,SAAS,GAAG,QAAQ,CAAC,cAAc,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;IAEnE,IAAI,SAAS,EAAE,CAAC;QACd,SAAS,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QAChC,MAAM,OAAO,GAAQ,SAAS,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;QACrE,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;QAChC,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;gBAC3B,iBAAiB,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,OAAsB,CAAC,CAAC;YACtE,CAAC;YACD,iBAAiB,CAAC,EAAE,CAAC,CAAC,MAAM,CAC1B,KAAC,aAAa,IACZ,MA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;IAEhB,OAAO,CACL,eACE,GAAG,EAAE,SAAS,EACd,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAC3B,WAAW,EAAE,GAAG,EAAE;YAChB,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACpD,CAAC,EACD,SAAS,EAAC,gFAAgF,EAC1F,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EACtC,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,aAEtC,YAAY,IAAI,CACf,cACE,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,iBAAiB,EAC1B,SAAS,EAAE,+IACT,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,gBACtC,EAAE,EACF,KAAK,EAAE;oBACL,KAAK,EAAE,UAAU;iBAClB,GACI,CACR,EACD,cACE,SAAS,EAAC,6CAA6C,qCAIvD,cACE,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,QAAQ,EACb,SAAS,EAAC,iCAAiC,GACtC,GACH,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AACF,eAAe,oBAAoB,CAAC"}
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,OAAO,OAAO,MAAM,UAAU,CAAC;AAE/B,OAAO,4BAA4B,CAAC;AACpC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAOjC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,+BAA+B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M,CAAC;YAC/C,iBAAiB,CAAC,aAAa,CAAC,CAAC,CAAC,qCAAqC;QACzE,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,8BAA8B;IAC9B,SAAS;QACP,cAAc,CAAC,OAAO,CACpB,SAAS,IAAI,SAAS,CAAC,aAAa,CAAC,kBAAkB,CAAC,CACzD,CAAC;IAEJ,OAAO,CACL,4BACE,eACE,GAAG,EAAE,SAAS,EACd,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAC3B,WAAW,EAAE,GAAG,EAAE;gBAChB,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACpD,CAAC,EACD,SAAS,EAAC,gFAAgF,EAC1F,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EACtC,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,aAEtC,YAAY,IAAI,CACf,cACE,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,iBAAiB,EAC1B,SAAS,EAAE,+IACT,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,gBACtC,EAAE,EACF,KAAK,EAAE;wBACL,KAAK,EAAE,UAAU;qBAClB,GACI,CACR,EACD,cACE,SAAS,EAAC,6CAA6C,qCAIvD,cACE,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,QAAQ,EACb,SAAS,EAAC,iCAAiC,GACtC,GACH,IACF,GACL,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AACF,eAAe,oBAAoB,CAAC"}
@@ -24,7 +24,9 @@ const renderBigPlayButton = (
24
24
  player: Player | undefined,
25
25
  isPaused: boolean,
26
26
  setIsPaused: React.Dispatch<React.SetStateAction<boolean>>,
27
- opacity: string = "100"
27
+ opacity: string = "100",
28
+ height?: number,
29
+ heightValue?: number
28
30
  ) => {
29
31
  const container = document.getElementById(`video-container-${id}`);
30
32
 
@@ -41,6 +43,8 @@ const renderBigPlayButton = (
41
43
  player={player}
42
44
  isPaused={isPaused}
43
45
  setIsPaused={setIsPaused}
46
+ height={height}
47
+ heightValue={heightValue}
44
48
  />
45
49
  );
46
50
  }
@@ -67,7 +71,8 @@ const renderControlBar = <T,>(
67
71
  setIsSubtitleMenuOpen?: (val: boolean) => void,
68
72
  disableNote?: boolean,
69
73
  setNoteOpen?: (val: boolean) => void,
70
- noteButtonClick?: (e: any) => void
74
+ noteButtonClick?: (e: any) => void,
75
+ isTrailer?: boolean
71
76
  ) => {
72
77
  const container = document.getElementById(`video-container-${id}`);
73
78
  if (container) {
@@ -101,6 +106,7 @@ const renderControlBar = <T,>(
101
106
  disableNote={disableNote}
102
107
  setNoteOpen={setNoteOpen}
103
108
  noteButtonClick={noteButtonClick}
109
+ isTrailer={isTrailer}
104
110
  />
105
111
  </SoftBuildersVideoPlayerProvider>
106
112
  );
@@ -122,6 +128,8 @@ export type Props<T = any> = {
122
128
  childRef?: React.Ref<HTMLDivElement>;
123
129
  noteButtonClick?: (e: any) => void;
124
130
  videoID?: string;
131
+ isTrailer?: boolean;
132
+ height?: number;
125
133
  };
126
134
  const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
127
135
  (
@@ -140,6 +148,8 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
140
148
  bottomRedBar = true,
141
149
  noteButtonClick,
142
150
  videoID,
151
+ isTrailer,
152
+ height,
143
153
  }: Props,
144
154
  ref: any
145
155
  ) => {
@@ -157,6 +167,8 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
157
167
  const [isSubtitleMenuOpen, setIsSubtitleMenuOpen] = useState(false);
158
168
  const [isHovered, setIsHovered] = useState(false);
159
169
  const [isNoteOpen, setNoteOpen] = useState(false);
170
+ const [heightValue, setHeightValue] = useState<number>(0);
171
+
160
172
  const onReady = (player: Player) => {
161
173
  if (playerRef) {
162
174
  playerRef.current = player;
@@ -312,7 +324,8 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
312
324
  setIsSubtitleMenuOpen,
313
325
  disableNote,
314
326
  setNoteOpen,
315
- noteButtonClick
327
+ noteButtonClick,
328
+ isTrailer
316
329
  );
317
330
  }, 0);
318
331
  return () => clearTimeout(controlBarTimeout);
@@ -334,12 +347,14 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
334
347
  playerRef.current,
335
348
  isPaused,
336
349
  setIsPaused,
337
- opacity
350
+ opacity,
351
+ height,
352
+ heightValue
338
353
  );
339
354
  }, 500);
340
355
  return () => clearTimeout(playButtonTimeout);
341
356
  }
342
- }, [isPaused, opacity, isReady, id]);
357
+ }, [isPaused, opacity, isReady, id, height, heightValue]);
343
358
  useEffect(() => {
344
359
  if (playerRef.current) {
345
360
  const intervalId = setInterval(() => {
@@ -408,11 +423,11 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
408
423
  setIsControlBarPresent(true);
409
424
  // setBgColor("rgba(200, 200, 200, 0.5)");
410
425
  // not using now
411
- timeoutRef.current = setTimeout(() => {
412
- setOpacity("0");
413
- setBgColor("transparent");
414
- setIsControlBarPresent(false);
415
- }, 3000);
426
+ // timeoutRef.current = setTimeout(() => {
427
+ // setOpacity("0");
428
+ // setBgColor("transparent");
429
+ // setIsControlBarPresent(false);
430
+ // }, 3000);
416
431
  if (isTimerOnly) {
417
432
  return;
418
433
  }
@@ -488,41 +503,62 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
488
503
  return () => clearInterval(interval); // Cleanup interval on unmount
489
504
  }, [playerRef]);
490
505
 
506
+ const container = document.getElementById(`video-container-${id}`);
507
+
508
+ function handleWidthChange(height: any) {
509
+ setHeightValue(height);
510
+ }
511
+
512
+ const resizeObserver = new ResizeObserver((entries) => {
513
+ for (let entry of entries) {
514
+ const currentHeight = entry.contentRect.height;
515
+ handleWidthChange(currentHeight); // Call the action when width changes
516
+ }
517
+ });
518
+
519
+ // Start observing the element
520
+ container &&
521
+ resizeObserver.observe(
522
+ container && container.querySelector(".vjs-control-bar")
523
+ );
524
+
491
525
  return (
492
- <div
493
- ref={videoRefs}
494
- id={`video-container-${id}`}
495
- onMouseMove={() => {
496
- !isNoteOpen ? handlePlayerClick(event, true) : "";
497
- }}
498
- className="sb-relative sb-rounded-md sb-overflow-hidden sb-w-full sb-h-full sb-bottom-2 "
499
- onMouseEnter={() => setIsHovered(true)}
500
- onMouseLeave={() => setIsHovered(false)}
501
- >
502
- {bottomRedBar && (
503
- <div
504
- ref={childRef}
505
- onClick={handlePlayerClick}
506
- 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 ${
507
- opacity == "100" ? "sb-opacity-0" : "sb-opacity-100"
508
- }`}
509
- style={{
510
- width: timeSeeker,
511
- }}
512
- ></div>
513
- )}
526
+ <>
514
527
  <div
515
- className="hover:sb-cursor-pointer sb-w-full sb-h-full"
516
- // Attach click event
517
- data-vjs-player
528
+ ref={videoRefs}
529
+ id={`video-container-${id}`}
530
+ onMouseMove={() => {
531
+ !isNoteOpen ? handlePlayerClick(event, true) : "";
532
+ }}
533
+ className="sb-relative sb-rounded-md sb-overflow-hidden sb-w-full sb-h-full sb-bottom-2 "
534
+ onMouseEnter={() => setIsHovered(true)}
535
+ onMouseLeave={() => setIsHovered(false)}
518
536
  >
537
+ {bottomRedBar && (
538
+ <div
539
+ ref={childRef}
540
+ onClick={handlePlayerClick}
541
+ 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 ${
542
+ opacity == "100" ? "sb-opacity-0" : "sb-opacity-100"
543
+ }`}
544
+ style={{
545
+ width: timeSeeker,
546
+ }}
547
+ ></div>
548
+ )}
519
549
  <div
520
- onClick={handlePlayerClick}
521
- ref={videoRef}
522
- className="sb-h-full sb-w-full sb-relative"
523
- ></div>
550
+ className="hover:sb-cursor-pointer sb-w-full sb-h-full"
551
+ // Attach click event
552
+ data-vjs-player
553
+ >
554
+ <div
555
+ onClick={handlePlayerClick}
556
+ ref={videoRef}
557
+ className="sb-h-full sb-w-full sb-relative"
558
+ ></div>
559
+ </div>
524
560
  </div>
525
- </div>
561
+ </>
526
562
  );
527
563
  }
528
564
  );
@@ -3,6 +3,7 @@ type Props = {
3
3
  setIsSeeking: (val: boolean) => void;
4
4
  handleControlDisplayTimer: (e: any) => void;
5
5
  volumeSliderToggler: boolean;
6
+ isTrailer?: boolean;
6
7
  };
7
- declare const VolumeSlider: ({ width, setIsSeeking, handleControlDisplayTimer, volumeSliderToggler, }: Props) => import("react/jsx-runtime").JSX.Element;
8
+ declare const VolumeSlider: ({ width, setIsSeeking, handleControlDisplayTimer, volumeSliderToggler, isTrailer, }: Props) => import("react/jsx-runtime").JSX.Element;
8
9
  export default VolumeSlider;
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React, { useEffect, useState } from "react";
3
3
  import Slider from "../Slider";
4
4
  import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
5
- import { MuteIcon, UnmuteIcon } from "../../images";
5
+ import { VolumeHigh, VolumeLow, VolumeMute, VolumeVLow } from "../icons";
6
6
  const MIN = 0, MAX = 100;
7
- const VolumeSlider = ({ width = 0, setIsSeeking, handleControlDisplayTimer, volumeSliderToggler, }) => {
7
+ const VolumeSlider = ({ width = 0, setIsSeeking, handleControlDisplayTimer, volumeSliderToggler, isTrailer, }) => {
8
8
  const { player } = useSoftBuildersVideoPlayerContext();
9
9
  const [isVisible, setVisible] = useState(false);
10
10
  const [volume, setVolume] = useState(0);
@@ -25,6 +25,21 @@ const VolumeSlider = ({ width = 0, setIsSeeking, handleControlDisplayTimer, volu
25
25
  player === null || player === void 0 ? void 0 : player.off("volumechange", updateVolumeState);
26
26
  };
27
27
  }, [player]);
28
+ const handleVolumeSliderClick = (e) => {
29
+ e.stopPropagation();
30
+ const slider = e.currentTarget;
31
+ const rect = slider.getBoundingClientRect();
32
+ const offsetX = e.clientY - rect.top;
33
+ const newVolume = (offsetX / rect.height) * 100;
34
+ setVolume(newVolume);
35
+ player === null || player === void 0 ? void 0 : player.volume(newVolume / 100);
36
+ if (newVolume === 0) {
37
+ player === null || player === void 0 ? void 0 : player.muted(true);
38
+ }
39
+ else {
40
+ player === null || player === void 0 ? void 0 : player.muted(false);
41
+ }
42
+ };
28
43
  const timeoutRef = React.useRef(null);
29
44
  useEffect(() => {
30
45
  setVisible(false);
@@ -40,7 +55,7 @@ const VolumeSlider = ({ width = 0, setIsSeeking, handleControlDisplayTimer, volu
40
55
  if (volume == 0 && !isVisible) {
41
56
  setVolume(60);
42
57
  player === null || player === void 0 ? void 0 : player.volume(0.6);
43
- player === null || player === void 0 ? void 0 : player.muted(false);
58
+ player && (player === null || player === void 0 ? void 0 : player.muted(false));
44
59
  }
45
60
  setVisible((prev) => !prev);
46
61
  timeoutRef.current = setTimeout(() => {
@@ -54,17 +69,23 @@ const VolumeSlider = ({ width = 0, setIsSeeking, handleControlDisplayTimer, volu
54
69
  setVolume(newVolume);
55
70
  player === null || player === void 0 ? void 0 : player.volume(newVolume / 100); // Normalize volume between 0 and 1
56
71
  if (newVolume === 0) {
57
- player === null || player === void 0 ? void 0 : player.muted(true);
72
+ player && (player === null || player === void 0 ? void 0 : player.muted(true));
58
73
  }
59
74
  else {
60
- player === null || player === void 0 ? void 0 : player.muted(false);
75
+ player && (player === null || player === void 0 ? void 0 : player.muted(false));
61
76
  }
62
77
  };
63
- return (_jsxs("div", { className: `sb-flex ${isVisible ? "" : ""} ${width > 400 ? "sb-flex-col-reverse" : "sb-flex-col !sb-justify-start"} sb-items-center sb-gap-1 sb-h-full`, children: [_jsx("div", { className: `sb-flex sb-relative ${width < 400 ? "-sb-top-1" : "sb-top-1"}`, onClick: toggleVisibility, children: volume == 0 || (player === null || player === void 0 ? void 0 : player.muted()) ? (_jsx(MuteIcon, { className: `sb-w-3 sb-h-3 ${width < 400 ? "" : ""} sb-h-5 sb-w-5` })) : (_jsx(UnmuteIcon, { className: `sb-w-3 sb-h-3 ${width < 400 ? "" : ""} sb-h-5 sb-w-5` })) }), _jsx("div", { className: "sb-flex sb-items-center sb-justify-center", children: _jsx("div", { className: `sb-transition-all sb-ease-in-out sb-duration-500 ${isVisible
78
+ const handleDoubleClick = (e) => {
79
+ setVolume(0);
80
+ player === null || player === void 0 ? void 0 : player.muted(true);
81
+ };
82
+ return (_jsxs("div", { className: `sb-flex ${isVisible ? "" : ""} ${width > 400 && !isTrailer
83
+ ? "sb-flex-col-reverse"
84
+ : `sb-flex-col ${isTrailer ? "sb-justify-start" : ""}`} sb-items-center sb-gap-1 sb-h-full`, children: [_jsx("div", { className: `sb-flex sb-relative ${width < 400 || isTrailer ? "-sb-top-1" : "sb-top-1"}`, onClick: toggleVisibility, onDoubleClick: handleDoubleClick, children: volume == 0 || (player === null || player === void 0 ? void 0 : player.muted()) ? (_jsx(VolumeMute, { className: `sb-w-3 sb-h-3 ${width < 400 || isTrailer ? "" : ""} sb-h-5 sb-w-5` })) : volume < 25 ? (_jsx(VolumeVLow, { className: `sb-w-3 sb-h-3 ${width < 400 || isTrailer ? "" : ""} sb-h-5 sb-w-5` })) : volume < 50 ? (_jsx(VolumeLow, { className: `sb-w-3 sb-h-3 ${width < 400 || isTrailer ? "" : ""} sb-h-5 sb-w-5` })) : (_jsx(VolumeHigh, { className: `sb-w-3 sb-h-3 ${width < 400 || isTrailer ? "" : ""} sb-h-5 sb-w-5` })) }), _jsx("div", { className: "sb-flex sb-w-fit sb-h-fit sb-items-center sb-justify-center", children: _jsx("div", { className: `sb-p-1 !sb-h-fit sb-transition-all sb-ease-in-out sb-duration-500 ${isVisible
64
85
  ? "sb-w-[22px] sb-opacity-100 sb-visible"
65
- : "sb-w-[22px] sb-opacity-0 sb-invisible"} ${width > 400
86
+ : "sb-w-[22px] sb-opacity-0 sb-invisible"} ${width > 400 && !isTrailer
66
87
  ? "-sb-rotate-90 -sb-translate-y-1"
67
- : "sb-rotate-90 sb-translate-y-1"} sb-relative`, children: _jsx(Slider, { value: volume, handleValueChange: handleValueChange, min: MIN, max: MAX, className: "!sb-w-16" }) }) })] }));
88
+ : "sb-rotate-90 sb-translate-y-1"} sb-relative`, children: _jsx(Slider, { value: volume, handleValueChange: handleValueChange, min: MIN, max: MAX, className: "!sb-w-16 ", handleSliderClick: handleVolumeSliderClick }) }) })] }));
68
89
  };
69
90
  export default VolumeSlider;
70
91
  //# sourceMappingURL=index.js.map