softbuilders-react-video-player 1.2.14 → 1.2.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/BigPlayButton/index.d.ts +4 -1
- package/dist/components/BigPlayButton/index.js +4 -2
- package/dist/components/BigPlayButton/index.js.map +1 -1
- package/dist/components/BigPlayButton/index.tsx +18 -3
- package/dist/components/ControlBar/index.d.ts +2 -1
- package/dist/components/ControlBar/index.js +16 -12
- package/dist/components/ControlBar/index.js.map +1 -1
- package/dist/components/ControlBar/index.tsx +58 -46
- package/dist/components/QualityMenu/index.d.ts +2 -1
- package/dist/components/QualityMenu/index.js +6 -6
- package/dist/components/QualityMenu/index.js.map +1 -1
- package/dist/components/QualityMenu/index.tsx +13 -5
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Slider/index.js.map +1 -1
- package/dist/components/Slider/index.tsx +36 -36
- package/dist/components/SoftBuildersVideoPlayer/index.d.ts +2 -0
- package/dist/components/SoftBuildersVideoPlayer/index.js +2 -2
- package/dist/components/SoftBuildersVideoPlayer/index.js.map +1 -1
- package/dist/components/SoftBuildersVideoPlayer/index.tsx +6 -0
- package/dist/components/SubtitleMenu/index.d.ts +2 -1
- package/dist/components/SubtitleMenu/index.js +2 -2
- package/dist/components/SubtitleMenu/index.js.map +1 -1
- package/dist/components/SubtitleMenu/index.tsx +6 -2
- package/dist/components/TimeSlider/index.js.map +1 -1
- package/dist/components/TimeSlider/index.tsx +0 -1
- package/dist/components/VideoPlayerComponent/index.d.ts +2 -0
- package/dist/components/VideoPlayerComponent/index.js +35 -20
- package/dist/components/VideoPlayerComponent/index.js.map +1 -1
- package/dist/components/VideoPlayerComponent/index.tsx +76 -41
- package/dist/components/VolumeSlider/index.d.ts +2 -1
- package/dist/components/VolumeSlider/index.js +29 -8
- package/dist/components/VolumeSlider/index.js.map +1 -1
- package/dist/components/VolumeSlider/index.tsx +57 -15
- package/dist/components/icons/SubIcon.js +1 -1
- package/dist/components/icons/SubIcon.js.map +1 -1
- package/dist/components/icons/SubIcon.tsx +27 -28
- package/dist/components/icons/VolumeHigh.d.ts +3 -0
- package/dist/components/icons/VolumeHigh.js +4 -0
- package/dist/components/icons/VolumeHigh.js.map +1 -0
- package/dist/components/icons/VolumeHigh.tsx +15 -0
- package/dist/components/icons/VolumeHighIcon.d.ts +3 -0
- package/dist/components/icons/VolumeHighIcon.js +4 -0
- package/dist/components/icons/VolumeHighIcon.js.map +1 -0
- package/dist/components/icons/VolumeHighIcon.tsx +16 -0
- package/dist/components/icons/VolumeIconHigh.d.ts +3 -0
- package/dist/components/icons/VolumeIconHigh.js +4 -0
- package/dist/components/icons/VolumeIconHigh.js.map +1 -0
- package/dist/components/icons/VolumeIconHigh.tsx +16 -0
- package/dist/components/icons/VolumeIconLow copy.d.ts +3 -0
- package/dist/components/icons/VolumeIconLow copy.js +4 -0
- package/dist/components/icons/VolumeIconLow copy.js.map +1 -0
- package/dist/components/icons/VolumeIconLow copy.tsx +17 -0
- package/dist/components/icons/VolumeLow.d.ts +3 -0
- package/dist/components/icons/VolumeLow.js +4 -0
- package/dist/components/icons/VolumeLow.js.map +1 -0
- package/dist/components/icons/VolumeLow.tsx +14 -0
- package/dist/components/icons/VolumeLowIcon.d.ts +3 -0
- package/dist/components/icons/VolumeLowIcon.js +4 -0
- package/dist/components/icons/VolumeLowIcon.js.map +1 -0
- package/dist/components/icons/VolumeLowIcon.tsx +15 -0
- package/dist/components/icons/VolumeMute.d.ts +3 -0
- package/dist/components/icons/VolumeMute.js +10 -0
- package/dist/components/icons/VolumeMute.js.map +1 -0
- package/dist/components/icons/VolumeMute.tsx +25 -0
- package/dist/components/icons/VolumeVLow.d.ts +3 -0
- package/dist/components/icons/VolumeVLow.js +4 -0
- package/dist/components/icons/VolumeVLow.js.map +1 -0
- package/dist/components/icons/VolumeVLow.tsx +14 -0
- package/dist/components/icons/index.d.ts +4 -0
- package/dist/components/icons/index.js +4 -0
- package/dist/components/icons/index.js.map +1 -1
- package/dist/components/icons/index.ts +19 -15
- package/dist/index.css +17 -2
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +370 -262
- package/dist/styles/tailwind.css +17 -2
- package/dist/types.d.ts +2 -1
- package/package.json +2 -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;
|
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,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AE,MAAM,KAC7B,KAAK,EAAE,KAAK,EACZ,MAAM,EAAC,EAAE,EACT,SAAS,EAAE,SAAS,EACpB,oBAAoB,EAAE,oBAAoB,EAC1C,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,GACd,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,uBAAuB,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE;IACvE,OAAO,CACL,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,SAAS,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/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAOnE,MAAM,cAAc,GAAG,CAAC,EACtB,UAAU,EACV,QAAQ,EACR,OAAO,GACa,EAAE,EAAE;IACxB,OAAO,CACL,iBACE,SAAS,EAAC,iCAAiC,EAC3C,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE;YAClB,CAAC,CAAC,eAAe,EAAE,CAAC;YACpB,OAAO,CAAC,CAAC,CAAC,CAAC;QACb,CAAC,YAED,eAAK,SAAS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AC,SAAS,EAAC,8BAA8B,GAAG,EACnE,WAAW,EACT,cACE,SAAS,EAAE,kDACT,KAAK,GAAG,GAAG,IAAI,CAAC,SAAS;gBACvB,CAAC,CAAC,sBAAsB;gBACxB,CAAC,CAAC,uDACN,EAAE,YAEF,eAAK,SAAS,EAAC,8BAA8B,aAC3C,eAAK,SAAS,EAAC,wEAAwE,aACrF,iBACE,OAAO,EAAE,GAAG,EAAE;oCACZ,IAAI,iBAAiB,EAAE,CAAC;wCACtB,iBAAiB,EAAE,CAAC;oCACtB,CAAC;gCACH,CAAC,EACD,SAAS,EAAC,oBAAoB,YAE9B,KAAC,aAAa,IAAC,SAAS,EAAC,eAAe,GAAG,GACpC,EACT,oCAAiB,IACb,EAEN,cAAK,SAAS,EAAC,wDAAwD,GAAG,EAE1E,cAAK,SAAS,EAAC,sDAAsD,YAClE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;4BACtB,OAAO,CACL,KAAC,cAAc,IAEb,UAAU,EAAE,CAAC,CAAC,IAAI,KAAK,SAAS,EAChC,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,GAAG,EAAE;oCACZ,oBAAoB,CAAC,CAAC,CAAC,CAAC;gCAC1B,CAAC,IALI,YAAY,CAAC,CAAC,KAAK,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={`${
|
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,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;
|
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;AAGrF,MAAM,GAAG,GAAG,CAAC,EACX,GAAG,G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
|
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;
|
@@ -132,7 +133,6 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
|
|
132
133
|
videoElement.style.width = "100%";
|
133
134
|
videoElement.style.height = "100%";
|
134
135
|
videoElement.style.objectFit = "cover";
|
135
|
-
videoElement.style.position = "relative";
|
136
136
|
playerRef.current = videojs(videoElement, options, () => {
|
137
137
|
onReady(playerRef.current);
|
138
138
|
});
|
@@ -191,7 +191,7 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
|
|
191
191
|
const controlBarTimeout = setTimeout(() => {
|
192
192
|
renderControlBar(id, playerRef.current, isPaused, setIsPaused, duration, notes, chapters, 5, handleSaveNoteAction, opacity, (e) => {
|
193
193
|
handlePlayerClick(e, true);
|
194
|
-
}, bgColor, setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote, setNoteOpen, noteButtonClick);
|
194
|
+
}, bgColor, setIsQualityMenuOpen, setIsSubtitleMenuOpen, disableNote, setNoteOpen, noteButtonClick, isTrailer);
|
195
195
|
}, 0);
|
196
196
|
return () => clearTimeout(controlBarTimeout);
|
197
197
|
}, [
|
@@ -207,11 +207,11 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
|
|
207
207
|
useEffect(() => {
|
208
208
|
if (isReady) {
|
209
209
|
const playButtonTimeout = setTimeout(() => {
|
210
|
-
renderBigPlayButton(id, playerRef.current, isPaused, setIsPaused, opacity);
|
210
|
+
renderBigPlayButton(id, playerRef.current, isPaused, setIsPaused, opacity, height, heightValue);
|
211
211
|
}, 500);
|
212
212
|
return () => clearTimeout(playButtonTimeout);
|
213
213
|
}
|
214
|
-
}, [isPaused, opacity, isReady, id]);
|
214
|
+
}, [isPaused, opacity, isReady, id, height, heightValue]);
|
215
215
|
useEffect(() => {
|
216
216
|
if (playerRef.current) {
|
217
217
|
const intervalId = setInterval(() => {
|
@@ -280,11 +280,11 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
|
|
280
280
|
setIsControlBarPresent(true);
|
281
281
|
// setBgColor("rgba(200, 200, 200, 0.5)");
|
282
282
|
// not using now
|
283
|
-
timeoutRef.current = setTimeout(() => {
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
}, 3000);
|
283
|
+
// timeoutRef.current = setTimeout(() => {
|
284
|
+
// setOpacity("0");
|
285
|
+
// setBgColor("transparent");
|
286
|
+
// setIsControlBarPresent(false);
|
287
|
+
// }, 3000);
|
288
288
|
if (isTimerOnly) {
|
289
289
|
return;
|
290
290
|
}
|
@@ -355,11 +355,26 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
|
|
355
355
|
const interval = setInterval(updateTimeSeeker, 500); // Update every 500ms
|
356
356
|
return () => clearInterval(interval); // Cleanup interval on unmount
|
357
357
|
}, [playerRef]);
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
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
|
+
const controlBar = container === null || container === void 0 ? void 0 : container.querySelector(".vjs-control-bar");
|
370
|
+
if (controlBar) {
|
371
|
+
resizeObserver.observe(controlBar);
|
372
|
+
}
|
373
|
+
return (_jsx(_Fragment, { children: _jsxs("div", { ref: videoRefs, id: `video-container-${id}`, onMouseMove: () => {
|
374
|
+
!isNoteOpen ? handlePlayerClick(event, true) : "";
|
375
|
+
}, 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: {
|
376
|
+
width: timeSeeker,
|
377
|
+
} })), _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" }) })] }) }));
|
363
378
|
});
|
364
379
|
export default VideoPlayerComponent;
|
365
380
|
//# 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,EA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EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,8BAA8B;IACtE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;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,OA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 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;
|
@@ -238,7 +250,6 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
|
|
238
250
|
videoElement.style.width = "100%";
|
239
251
|
videoElement.style.height = "100%";
|
240
252
|
videoElement.style.objectFit = "cover";
|
241
|
-
videoElement.style.position = "relative";
|
242
253
|
playerRef.current = videojs(videoElement, options, () => {
|
243
254
|
onReady(playerRef.current as Player);
|
244
255
|
});
|
@@ -313,7 +324,8 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
|
|
313
324
|
setIsSubtitleMenuOpen,
|
314
325
|
disableNote,
|
315
326
|
setNoteOpen,
|
316
|
-
noteButtonClick
|
327
|
+
noteButtonClick,
|
328
|
+
isTrailer
|
317
329
|
);
|
318
330
|
}, 0);
|
319
331
|
return () => clearTimeout(controlBarTimeout);
|
@@ -335,12 +347,14 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
|
|
335
347
|
playerRef.current,
|
336
348
|
isPaused,
|
337
349
|
setIsPaused,
|
338
|
-
opacity
|
350
|
+
opacity,
|
351
|
+
height,
|
352
|
+
heightValue
|
339
353
|
);
|
340
354
|
}, 500);
|
341
355
|
return () => clearTimeout(playButtonTimeout);
|
342
356
|
}
|
343
|
-
}, [isPaused, opacity, isReady, id]);
|
357
|
+
}, [isPaused, opacity, isReady, id, height, heightValue]);
|
344
358
|
useEffect(() => {
|
345
359
|
if (playerRef.current) {
|
346
360
|
const intervalId = setInterval(() => {
|
@@ -409,11 +423,11 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
|
|
409
423
|
setIsControlBarPresent(true);
|
410
424
|
// setBgColor("rgba(200, 200, 200, 0.5)");
|
411
425
|
// not using now
|
412
|
-
timeoutRef.current = setTimeout(() => {
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
}, 3000);
|
426
|
+
// timeoutRef.current = setTimeout(() => {
|
427
|
+
// setOpacity("0");
|
428
|
+
// setBgColor("transparent");
|
429
|
+
// setIsControlBarPresent(false);
|
430
|
+
// }, 3000);
|
417
431
|
if (isTimerOnly) {
|
418
432
|
return;
|
419
433
|
}
|
@@ -489,41 +503,62 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
|
|
489
503
|
return () => clearInterval(interval); // Cleanup interval on unmount
|
490
504
|
}, [playerRef]);
|
491
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
|
+
const controlBar = container?.querySelector(".vjs-control-bar");
|
521
|
+
if (controlBar) {
|
522
|
+
resizeObserver.observe(controlBar);
|
523
|
+
}
|
524
|
+
|
492
525
|
return (
|
493
|
-
|
494
|
-
ref={videoRefs}
|
495
|
-
id={`video-container-${id}`}
|
496
|
-
onMouseMove={() => {
|
497
|
-
!isNoteOpen ? handlePlayerClick(event, true) : "";
|
498
|
-
}}
|
499
|
-
className="sb-relative sb-rounded-md sb-overflow-hidden sb-w-full sb-h-full sb-bottom-2 "
|
500
|
-
onMouseEnter={() => setIsHovered(true)}
|
501
|
-
onMouseLeave={() => setIsHovered(false)}
|
502
|
-
>
|
503
|
-
{bottomRedBar && (
|
504
|
-
<div
|
505
|
-
ref={childRef}
|
506
|
-
onClick={handlePlayerClick}
|
507
|
-
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 ${
|
508
|
-
opacity == "100" ? "sb-opacity-0" : "sb-opacity-100"
|
509
|
-
}`}
|
510
|
-
style={{
|
511
|
-
width: timeSeeker,
|
512
|
-
}}
|
513
|
-
></div>
|
514
|
-
)}
|
526
|
+
<>
|
515
527
|
<div
|
516
|
-
|
517
|
-
|
518
|
-
|
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)}
|
519
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
|
+
)}
|
520
549
|
<div
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
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>
|
525
560
|
</div>
|
526
|
-
|
561
|
+
</>
|
527
562
|
);
|
528
563
|
}
|
529
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;
|