softbuilders-react-video-player 1.2.17 → 1.2.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/dist/components/BigPlayButton/index.d.ts +2 -1
  2. package/dist/components/BigPlayButton/index.js +4 -4
  3. package/dist/components/BigPlayButton/index.js.map +1 -1
  4. package/dist/components/BigPlayButton/index.tsx +13 -5
  5. package/dist/components/ControlBar/index.js +7 -7
  6. package/dist/components/ControlBar/index.js.map +1 -1
  7. package/dist/components/ControlBar/index.tsx +40 -41
  8. package/dist/components/Slider/index.d.ts +3 -1
  9. package/dist/components/Slider/index.js +9 -3
  10. package/dist/components/Slider/index.js.map +1 -1
  11. package/dist/components/Slider/index.tsx +13 -2
  12. package/dist/components/SoftBuildersVideoPlayer/index.js +2 -1
  13. package/dist/components/SoftBuildersVideoPlayer/index.js.map +1 -1
  14. package/dist/components/SoftBuildersVideoPlayer/index.tsx +2 -1
  15. package/dist/components/TimeSlider/index.js +25 -10
  16. package/dist/components/TimeSlider/index.js.map +1 -1
  17. package/dist/components/TimeSlider/index.tsx +27 -11
  18. package/dist/components/VideoPlayerComponent/index.js +26 -4
  19. package/dist/components/VideoPlayerComponent/index.js.map +1 -1
  20. package/dist/components/VideoPlayerComponent/index.tsx +35 -4
  21. package/dist/components/VideoPlayerComponent/style/style.css +17 -1
  22. package/dist/components/VolumeSlider/index.js +36 -3
  23. package/dist/components/VolumeSlider/index.js.map +1 -1
  24. package/dist/components/VolumeSlider/index.tsx +38 -2
  25. package/dist/components/icons/SkillamiIcon.d.ts +3 -0
  26. package/dist/components/icons/SkillamiIcon.js +4 -0
  27. package/dist/components/icons/SkillamiIcon.js.map +1 -0
  28. package/dist/components/icons/SkillamiIcon.tsx +25 -0
  29. package/dist/components/icons/index.d.ts +1 -0
  30. package/dist/components/icons/index.js +1 -0
  31. package/dist/components/icons/index.js.map +1 -1
  32. package/dist/components/icons/index.ts +1 -0
  33. package/dist/images/index.d.ts +1 -0
  34. package/dist/images/index.js +1 -0
  35. package/dist/images/index.js.map +1 -1
  36. package/dist/index.css +30 -0
  37. package/dist/index.mjs +318 -209
  38. package/dist/styles/tailwind.css +15 -0
  39. package/package.json +1 -1
@@ -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,MAAe,EACf,WAAoB,EACpB,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,OAAs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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"}
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,EAAO,MAAM,QAAQ,CAAC;AAOtC,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,MAAe,EACf,WAAoB,EACpB,SAAmB,EACnB,EAAE;IACF,MAAM,SAAS,GAAG,QAAQ,CAAC,cAAc,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;IAEnE,IAAI,SAAS,EAAE,CAAC;QACd,SAAS,CAAC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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"}
@@ -4,7 +4,7 @@ import videojs from "video.js";
4
4
  import Player from "video.js/dist/types/player";
5
5
  import "video.js/dist/video-js.css";
6
6
  import ControlBar from "../ControlBar";
7
- import { isEqual } from "lodash";
7
+ import { isEqual, set } from "lodash";
8
8
 
9
9
  import {
10
10
  SoftBuildersVideoPlayerChapter,
@@ -26,7 +26,8 @@ const renderBigPlayButton = (
26
26
  setIsPaused: React.Dispatch<React.SetStateAction<boolean>>,
27
27
  opacity: string = "100",
28
28
  height?: number,
29
- heightValue?: number
29
+ heightValue?: number,
30
+ isLoading?: boolean
30
31
  ) => {
31
32
  const container = document.getElementById(`video-container-${id}`);
32
33
 
@@ -45,6 +46,7 @@ const renderBigPlayButton = (
45
46
  setIsPaused={setIsPaused}
46
47
  height={height}
47
48
  heightValue={heightValue}
49
+ isLoading={isLoading}
48
50
  />
49
51
  );
50
52
  }
@@ -168,6 +170,7 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
168
170
  const [isHovered, setIsHovered] = useState(false);
169
171
  const [isNoteOpen, setNoteOpen] = useState(false);
170
172
  const [heightValue, setHeightValue] = useState<number>(0);
173
+ const [isLoading, setIsloading] = useState<boolean>(false);
171
174
 
172
175
  const onReady = (player: Player) => {
173
176
  if (playerRef) {
@@ -349,12 +352,13 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
349
352
  setIsPaused,
350
353
  opacity,
351
354
  height,
352
- heightValue
355
+ heightValue,
356
+ isLoading
353
357
  );
354
358
  }, 500);
355
359
  return () => clearTimeout(playButtonTimeout);
356
360
  }
357
- }, [isPaused, opacity, isReady, id, height, heightValue]);
361
+ }, [isPaused, opacity, isReady, id, height, heightValue, isLoading]);
358
362
  useEffect(() => {
359
363
  if (playerRef.current) {
360
364
  const intervalId = setInterval(() => {
@@ -521,7 +525,34 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
521
525
  if (controlBar) {
522
526
  resizeObserver.observe(controlBar);
523
527
  }
528
+ function debounce(
529
+ func: (arg: boolean) => void, // The function type should accept a boolean argument
530
+ delay: number
531
+ ) {
532
+ let timeoutId: any;
524
533
 
534
+ return function (arg: boolean) {
535
+ if (timeoutId) {
536
+ clearTimeout(timeoutId);
537
+ }
538
+
539
+ timeoutId = setTimeout(() => {
540
+ func(arg);
541
+ }, delay);
542
+ };
543
+ }
544
+
545
+ if (playerRef.current) {
546
+ playerRef.current.on("waiting", function () {
547
+ console.log("The player is buffering...");
548
+
549
+ debounce((arg) => setIsloading(arg), 300)(true);
550
+ });
551
+
552
+ playerRef.current.on("playing", function () {
553
+ debounce((arg) => setIsloading(arg), 300)(false);
554
+ });
555
+ }
525
556
  return (
526
557
  <>
527
558
  <div
@@ -7,10 +7,26 @@
7
7
  -o-object-fit: cover;
8
8
  object-fit: cover;
9
9
  }
10
- .vjs-control-bar{
10
+ .vjs-control-bar {
11
11
  justify-content: center;
12
12
  transition: opacity 0.5s ease-in-out;
13
13
  }
14
+ .vjs-big-play-button {
15
+ display: none;
16
+ }
17
+ .vjs-loading-spinner {
18
+ display: none;
19
+ }
20
+ .vjs-loading-spinner::after {
21
+ display: none;
22
+ }
23
+ .vjs-loading-spinner::before {
24
+ display: none;
25
+ }
26
+ .vjs-seeking .vjs-loading-spinner,
27
+ .vjs-waiting .vjs-loading-spinner {
28
+ display: none !important;
29
+ }
14
30
  .video-js .vjs-big-play-button {
15
31
  background-color: transparent;
16
32
  display: block;
@@ -8,6 +8,7 @@ const VolumeSlider = ({ width = 0, setIsSeeking, handleControlDisplayTimer, volu
8
8
  const { player } = useSoftBuildersVideoPlayerContext();
9
9
  const [isVisible, setVisible] = useState(false);
10
10
  const [volume, setVolume] = useState(0);
11
+ const [isClicked, setClicked] = useState(false);
11
12
  // Sync volume state with player's volume and mute states
12
13
  useEffect(() => {
13
14
  const updateVolumeState = () => {
@@ -29,8 +30,16 @@ const VolumeSlider = ({ width = 0, setIsSeeking, handleControlDisplayTimer, volu
29
30
  e.stopPropagation();
30
31
  const slider = e.currentTarget;
31
32
  const rect = slider.getBoundingClientRect();
32
- const offsetX = e.clientY - rect.top;
33
- const newVolume = (offsetX / rect.height) * 100;
33
+ let offsetX;
34
+ let newVolume;
35
+ if (!isTrailer && width > 400) {
36
+ offsetX = e.clientY - rect.bottom;
37
+ newVolume = (offsetX / rect.height) * -100;
38
+ }
39
+ else {
40
+ offsetX = e.clientY - rect.top;
41
+ newVolume = (offsetX / rect.height) * 100;
42
+ }
34
43
  setVolume(newVolume);
35
44
  player === null || player === void 0 ? void 0 : player.volume(newVolume / 100);
36
45
  if (newVolume === 0) {
@@ -40,6 +49,30 @@ const VolumeSlider = ({ width = 0, setIsSeeking, handleControlDisplayTimer, volu
40
49
  player === null || player === void 0 ? void 0 : player.muted(false);
41
50
  }
42
51
  };
52
+ const onMouseMove = (e) => {
53
+ if (isClicked) {
54
+ const slider = e.currentTarget;
55
+ const rect = slider.getBoundingClientRect();
56
+ let offsetX;
57
+ let newVolume;
58
+ if (!isTrailer && width > 400) {
59
+ offsetX = e.clientY - rect.bottom;
60
+ newVolume = (offsetX / rect.height) * -100;
61
+ }
62
+ else {
63
+ offsetX = e.clientY - rect.top;
64
+ newVolume = (offsetX / rect.height) * 100;
65
+ }
66
+ setVolume(newVolume);
67
+ player === null || player === void 0 ? void 0 : player.volume(newVolume / 100);
68
+ if (newVolume === 0) {
69
+ player === null || player === void 0 ? void 0 : player.muted(true);
70
+ }
71
+ else {
72
+ player === null || player === void 0 ? void 0 : player.muted(false);
73
+ }
74
+ }
75
+ };
43
76
  const timeoutRef = React.useRef(null);
44
77
  useEffect(() => {
45
78
  setVisible(false);
@@ -85,7 +118,7 @@ const VolumeSlider = ({ width = 0, setIsSeeking, handleControlDisplayTimer, volu
85
118
  ? "sb-w-[22px] sb-opacity-100 sb-visible"
86
119
  : "sb-w-[22px] sb-opacity-0 sb-invisible"} ${width > 400 && !isTrailer
87
120
  ? "-sb-rotate-90 -sb-translate-y-1"
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 }) }) })] }));
121
+ : "sb-rotate-90 sb-translate-y-1"} sb-relative`, children: _jsx(Slider, { onMouseMove: (e) => onMouseMove(e), value: volume, handleValueChange: handleValueChange, min: MIN, max: MAX, className: "!sb-w-16 ", handleSliderClick: handleVolumeSliderClick, setClicked: setClicked }) }) })] }));
89
122
  };
90
123
  export default VolumeSlider;
91
124
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/VolumeSlider/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAErF,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGzE,MAAM,GAAG,GAAG,CAAC,EACX,GAAG,GAAG,GAAG,CAAC;AAUZ,MAAM,YAAY,GAAG,CAAC,EACpB,KAA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ChB,CACH,CAAC,CAAC,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,CAChB,KAAC,UAAU,IACT,SAAS,EAAE,iBACT,KAAK,GAAG,GAAG,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAClC,gBAAgB,GAChB,CACH,CAAC,CAAC,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,CAChB,KAAC,SAAS,IACR,SAAS,EAAE,iBACT,KAAK,GAAG,GAAG,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAClC,gBAAgB,GACL,CACd,CAAC,CAAC,CAAC,CACF,KAAC,UAAU,IACT,SAAS,EAAE,iBACT,KAAK,GAAG,GAAG,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAClC,gBAAgB,GACJ,CACf,GACG,EAGN,cAAK,SAAS,EAAC,4CAA4C,YAEzD,cACE,SAAS,EAAE,sDACT,SAAS;wBACP,CAAC,CAAC,uCAAuC;wBACzC,CAAC,CAAC,uCACN,IACE,KAAK,GAAG,GAAG,IAAI,CAAC,SAAS;wBACvB,CAAC,CAAC,iCAAiC;wBACnC,CAAC,CAAC,+BACN,cAAc,YAEd,KAAC,MAAM,IACL,WAAW,EAAE,CAAC,CAAmC,EAAE,EAAE,CACnD,WAAW,CAAC,CAAC,CAAC,EAEhB,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,iBAAiB,EACpC,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,WAAW,EACrB,iBAAiB,EAAE,uBAAuB,EAC1C,UAAU,EAAE,UAAU,GACtB,GACE,GACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -26,6 +26,7 @@ const VolumeSlider = ({
26
26
  const { player } = useSoftBuildersVideoPlayerContext();
27
27
  const [isVisible, setVisible] = useState(false);
28
28
  const [volume, setVolume] = useState(0);
29
+ const [isClicked, setClicked] = useState(false);
29
30
 
30
31
  // Sync volume state with player's volume and mute states
31
32
  useEffect(() => {
@@ -51,8 +52,15 @@ const VolumeSlider = ({
51
52
  e.stopPropagation();
52
53
  const slider = e.currentTarget;
53
54
  const rect = slider.getBoundingClientRect();
54
- const offsetX = e.clientY - rect.top;
55
- const newVolume = (offsetX / rect.height) * 100;
55
+ let offsetX;
56
+ let newVolume;
57
+ if (!isTrailer && width > 400) {
58
+ offsetX = e.clientY - rect.bottom;
59
+ newVolume = (offsetX / rect.height) * -100;
60
+ } else {
61
+ offsetX = e.clientY - rect.top;
62
+ newVolume = (offsetX / rect.height) * 100;
63
+ }
56
64
 
57
65
  setVolume(newVolume);
58
66
  player?.volume(newVolume / 100);
@@ -63,6 +71,30 @@ const VolumeSlider = ({
63
71
  player?.muted(false);
64
72
  }
65
73
  };
74
+ const onMouseMove = (e: React.MouseEvent<HTMLDivElement>) => {
75
+ if (isClicked) {
76
+ const slider = e.currentTarget;
77
+ const rect = slider.getBoundingClientRect();
78
+ let offsetX;
79
+ let newVolume;
80
+ if (!isTrailer && width > 400) {
81
+ offsetX = e.clientY - rect.bottom;
82
+ newVolume = (offsetX / rect.height) * -100;
83
+ } else {
84
+ offsetX = e.clientY - rect.top;
85
+ newVolume = (offsetX / rect.height) * 100;
86
+ }
87
+
88
+ setVolume(newVolume);
89
+ player?.volume(newVolume / 100);
90
+
91
+ if (newVolume === 0) {
92
+ player?.muted(true);
93
+ } else {
94
+ player?.muted(false);
95
+ }
96
+ }
97
+ };
66
98
  const timeoutRef = React.useRef<any>(null);
67
99
  useEffect(() => {
68
100
  setVisible(false);
@@ -163,12 +195,16 @@ const VolumeSlider = ({
163
195
  } sb-relative`}
164
196
  >
165
197
  <Slider
198
+ onMouseMove={(e: React.MouseEvent<HTMLDivElement>) =>
199
+ onMouseMove(e)
200
+ }
166
201
  value={volume}
167
202
  handleValueChange={handleValueChange}
168
203
  min={MIN}
169
204
  max={MAX}
170
205
  className="!sb-w-16 "
171
206
  handleSliderClick={handleVolumeSliderClick}
207
+ setClicked={setClicked}
172
208
  />
173
209
  </div>
174
210
  </div>
@@ -0,0 +1,3 @@
1
+ import type { SVGProps } from "react";
2
+ declare const SvgSkillamiIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default SvgSkillamiIcon;
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const SvgSkillamiIcon = (props) => (_jsxs("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 45 46", width: "1em", height: "1em" }, props, { children: [_jsx("path", { fill: "#fff", d: "m22.736 37.857-11.924-3.255-3.194-12.153a.99.99 0 0 0-1.213-.714c-.53.145-.843.7-.7 1.236l3.343 12.715a.991.991 0 0 0 .7.714l12.476 3.406a.985.985 0 0 0 1.213-.713 1.01 1.01 0 0 0-.7-1.236M44.733 25.943 39.51 6.074a1 1 0 0 0-.7-.714L19.308.033a.98.98 0 0 0-.957.26L9.389 9.428a1.02 1.02 0 0 0 0 1.428.976.976 0 0 0 1.402 0l8.56-8.717 18.39 5.024 4.93 18.741-8.56 8.724a1.02 1.02 0 0 0 0 1.428.977.977 0 0 0 1.4 0l8.963-9.133c.249-.254.348-.627.256-.975z" }), _jsx("path", { fill: "#fff", d: "m24.323 30.829-7.735-2.113-2.074-7.883a.99.99 0 0 0-1.213-.714c-.53.145-.842.7-.7 1.236l2.223 8.445a.991.991 0 0 0 .7.714l8.287 2.265a.985.985 0 0 0 1.212-.714 1.01 1.01 0 0 0-.7-1.236M15.887 15.86l5.573-5.68 4.278 1.168a.985.985 0 0 0 1.213-.714 1.01 1.01 0 0 0-.7-1.236l-4.83-1.32a.98.98 0 0 0-.957.262l-5.979 6.092a1.02 1.02 0 0 0 0 1.428.977.977 0 0 0 1.402 0M29.206 30.858a.976.976 0 0 0 1.4 0l5.98-6.093c.248-.253.348-.627.255-.975l-1.294-4.921a.99.99 0 0 0-1.213-.715c-.53.145-.843.7-.7 1.236l1.145 4.36-5.574 5.68a1.02 1.02 0 0 0 0 1.428" }), _jsx("path", { fill: "#F26C21", d: "m29.383 36.008-2.99-11 2.745-2.798-1.007-3.83 2.45-2.498 3.76 1.026 3.56-3.628L36.6 8.322l-4.865-1.327-3.56 3.628 1.007 3.831-2.45 2.497-3.76-1.026-2.745 2.799-10.794-3.049-1.007-3.834-4.865-1.327L0 14.142l1.302 4.959 4.865 1.326 2.745-2.798 10.794 3.048 1.007 3.835 3.762 1.025 2.991 11-2.745 2.798 1.302 4.959 4.865 1.326 3.56-3.628-1.302-4.958-3.763-1.03zM32.328 9.25l2.653.725.712 2.704-1.942 1.979-2.653-.725-.712-2.704zM5.573 18.173l-2.653-.725-.711-2.704 1.941-1.979 2.653.725.712 2.704zm16.761 4.686-.71-2.704 1.941-1.979 2.653.725.711 2.704-1.941 1.979zm7.963 20.507-2.653-.725-.711-2.704 1.942-1.979 2.653.725.711 2.704z" })] })));
3
+ export default SvgSkillamiIcon;
4
+ //# sourceMappingURL=SkillamiIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SkillamiIcon.js","sourceRoot":"","sources":["../../../src/components/icons/SkillamiIcon.tsx"],"names":[],"mappings":";AACA,MAAM,eAAe,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAC1D,6BACE,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,IACR,KAAK,eAET,eACE,IAAI,EAAC,MAAM,EACX,CAAC,EAAC,ucAAuc,GACzc,EACF,eACE,IAAI,EAAC,MAAM,EACX,CAAC,EAAC,miBAAmiB,GACriB,EACF,eACE,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,wnBAAwnB,GAC1nB,KACE,CACP,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { SVGProps } from "react";
2
+ const SvgSkillamiIcon = (props: SVGProps<SVGSVGElement>) => (
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ fill="none"
6
+ viewBox="0 0 45 46"
7
+ width="1em"
8
+ height="1em"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="#fff"
13
+ d="m22.736 37.857-11.924-3.255-3.194-12.153a.99.99 0 0 0-1.213-.714c-.53.145-.843.7-.7 1.236l3.343 12.715a.991.991 0 0 0 .7.714l12.476 3.406a.985.985 0 0 0 1.213-.713 1.01 1.01 0 0 0-.7-1.236M44.733 25.943 39.51 6.074a1 1 0 0 0-.7-.714L19.308.033a.98.98 0 0 0-.957.26L9.389 9.428a1.02 1.02 0 0 0 0 1.428.976.976 0 0 0 1.402 0l8.56-8.717 18.39 5.024 4.93 18.741-8.56 8.724a1.02 1.02 0 0 0 0 1.428.977.977 0 0 0 1.4 0l8.963-9.133c.249-.254.348-.627.256-.975z"
14
+ />
15
+ <path
16
+ fill="#fff"
17
+ d="m24.323 30.829-7.735-2.113-2.074-7.883a.99.99 0 0 0-1.213-.714c-.53.145-.842.7-.7 1.236l2.223 8.445a.991.991 0 0 0 .7.714l8.287 2.265a.985.985 0 0 0 1.212-.714 1.01 1.01 0 0 0-.7-1.236M15.887 15.86l5.573-5.68 4.278 1.168a.985.985 0 0 0 1.213-.714 1.01 1.01 0 0 0-.7-1.236l-4.83-1.32a.98.98 0 0 0-.957.262l-5.979 6.092a1.02 1.02 0 0 0 0 1.428.977.977 0 0 0 1.402 0M29.206 30.858a.976.976 0 0 0 1.4 0l5.98-6.093c.248-.253.348-.627.255-.975l-1.294-4.921a.99.99 0 0 0-1.213-.715c-.53.145-.843.7-.7 1.236l1.145 4.36-5.574 5.68a1.02 1.02 0 0 0 0 1.428"
18
+ />
19
+ <path
20
+ fill="#F26C21"
21
+ d="m29.383 36.008-2.99-11 2.745-2.798-1.007-3.83 2.45-2.498 3.76 1.026 3.56-3.628L36.6 8.322l-4.865-1.327-3.56 3.628 1.007 3.831-2.45 2.497-3.76-1.026-2.745 2.799-10.794-3.049-1.007-3.834-4.865-1.327L0 14.142l1.302 4.959 4.865 1.326 2.745-2.798 10.794 3.048 1.007 3.835 3.762 1.025 2.991 11-2.745 2.798 1.302 4.959 4.865 1.326 3.56-3.628-1.302-4.958-3.763-1.03zM32.328 9.25l2.653.725.712 2.704-1.942 1.979-2.653-.725-.712-2.704zM5.573 18.173l-2.653-.725-.711-2.704 1.941-1.979 2.653.725.712 2.704zm16.761 4.686-.71-2.704 1.941-1.979 2.653.725.711 2.704-1.941 1.979zm7.963 20.507-2.653-.725-.711-2.704 1.942-1.979 2.653.725.711 2.704z"
22
+ />
23
+ </svg>
24
+ );
25
+ export default SvgSkillamiIcon;
@@ -10,6 +10,7 @@ export { default as OpenNoteIcon } from "./OpenNoteIcon";
10
10
  export { default as PauseIcon } from "./PauseIcon";
11
11
  export { default as PlayIcon } from "./PlayIcon";
12
12
  export { default as SettingsIcon } from "./SettingsIcon";
13
+ export { default as SkillamiIcon } from "./SkillamiIcon";
13
14
  export { default as SubIcon } from "./SubIcon";
14
15
  export { default as SubtitlesIcon } from "./SubtitlesIcon";
15
16
  export { default as UnmuteIcon } from "./UnmuteIcon";
@@ -10,6 +10,7 @@ export { default as OpenNoteIcon } from "./OpenNoteIcon";
10
10
  export { default as PauseIcon } from "./PauseIcon";
11
11
  export { default as PlayIcon } from "./PlayIcon";
12
12
  export { default as SettingsIcon } from "./SettingsIcon";
13
+ export { default as SkillamiIcon } from "./SkillamiIcon";
13
14
  export { default as SubIcon } from "./SubIcon";
14
15
  export { default as SubtitlesIcon } from "./SubtitlesIcon";
15
16
  export { default as UnmuteIcon } from "./UnmuteIcon";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,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con } from "./PauseIcon";
11
11
  export { default as PlayIcon } from "./PlayIcon";
12
12
  export { default as SettingsIcon } from "./SettingsIcon";
13
+ export { default as SkillamiIcon } from "./SkillamiIcon";
13
14
  export { default as SubIcon } from "./SubIcon";
14
15
  export { default as SubtitlesIcon } from "./SubtitlesIcon";
15
16
  export { default as UnmuteIcon } from "./UnmuteIcon";
@@ -13,3 +13,4 @@ export { default as SettingsIcon } from "./../components/icons/SettingsIcon";
13
13
  export { default as UnmuteIcon } from "./../components/icons/UnmuteIcon";
14
14
  export { default as SubtitlesIcon } from "./../components/icons/SubtitlesIcon";
15
15
  export { default as SubIcon } from "./../components/icons/SubIcon";
16
+ export { default as SkillamiIcon } from "./../components/icons/SkillamiIcon";
@@ -13,4 +13,5 @@ export { default as SettingsIcon } from "./../components/icons/SettingsIcon";
13
13
  export { default as UnmuteIcon } from "./../components/icons/UnmuteIcon";
14
14
  export { default as SubtitlesIcon } from "./../components/icons/SubtitlesIcon";
15
15
  export { default as SubIcon } from "./../components/icons/SubIcon";
16
+ export { default as SkillamiIcon } from "./../components/icons/SkillamiIcon";
16
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/images/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gCAAgC,CAAC;A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AAI,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oCAAoC,CAAC"}
package/dist/index.css CHANGED
@@ -48,6 +48,22 @@ input[type=range]::-moz-range-thumb {
48
48
  justify-content: center;
49
49
  transition: opacity 0.5s ease-in-out;
50
50
  }
51
+ .vjs-big-play-button {
52
+ display: none;
53
+ }
54
+ .vjs-loading-spinner {
55
+ display: none;
56
+ }
57
+ .vjs-loading-spinner::after {
58
+ display: none;
59
+ }
60
+ .vjs-loading-spinner::before {
61
+ display: none;
62
+ }
63
+ .vjs-seeking .vjs-loading-spinner,
64
+ .vjs-waiting .vjs-loading-spinner {
65
+ display: none !important;
66
+ }
51
67
  .video-js .vjs-big-play-button {
52
68
  background-color: transparent;
53
69
  display: block;
@@ -439,9 +455,15 @@ video {
439
455
  .-sb-left-\[9\.75rem\] {
440
456
  left: -9.75rem;
441
457
  }
458
+ .-sb-right-2 {
459
+ right: -0.5rem;
460
+ }
442
461
  .-sb-top-1 {
443
462
  top: -0.25rem;
444
463
  }
464
+ .-sb-top-2 {
465
+ top: -0.5rem;
466
+ }
445
467
  .sb-bottom-0 {
446
468
  bottom: 0px;
447
469
  }
@@ -609,6 +631,14 @@ video {
609
631
  .sb-transform {
610
632
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
611
633
  }
634
+ @keyframes sb-spin {
635
+ to {
636
+ transform: rotate(360deg);
637
+ }
638
+ }
639
+ .sb-animate-spin {
640
+ animation: sb-spin 1s linear infinite;
641
+ }
612
642
  .sb-cursor-pointer {
613
643
  cursor: pointer;
614
644
  }