softbuilders-react-video-player 1.2.5 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ControlBar/index.js +0 -1
- package/dist/components/ControlBar/index.js.map +1 -1
- package/dist/components/ControlBar/index.tsx +0 -2
- package/dist/components/SoftBuildersVideoPlayer/index.js +1 -1
- package/dist/components/SoftBuildersVideoPlayer/index.js.map +1 -1
- package/dist/components/SoftBuildersVideoPlayer/index.tsx +106 -102
- package/dist/components/VideoPlayerComponent/index.js +18 -21
- package/dist/components/VideoPlayerComponent/index.js.map +1 -1
- package/dist/components/VideoPlayerComponent/index.tsx +36 -34
- package/dist/index.mjs +22 -28
- package/package.json +1 -1
@@ -34,7 +34,6 @@ const ControlBar = ({ player, isPaused, setIsPaused, duration, notes, chapters,
|
|
34
34
|
// Start observing the element
|
35
35
|
container && resizeObserver.observe(container);
|
36
36
|
const togglePlay = (e) => {
|
37
|
-
console.log(player.currentTime());
|
38
37
|
e.preventDefault();
|
39
38
|
e.stopPropagation();
|
40
39
|
if (isPaused)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ControlBar/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AAKvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL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AN,MAAM,uBAAN,MAAM,CAAE,iBAAiB,EAAE,CAAC;wBAC9B,CAAC;oBACH,CAAC,YAED,KAAC,cAAc,IAAC,SAAS,EAAC,eAAe,GAAG,GACrC,GACI,IACX,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
@@ -48,7 +48,7 @@ const Component = forwardRef(({ options, notes, chapters, startTime = 0, handleS
|
|
48
48
|
}, [options === null || options === void 0 ? void 0 : options.tracks]);
|
49
49
|
const id = (Date.now() + Math.random() * 100).toString();
|
50
50
|
console.log("id: ", id);
|
51
|
-
return (_jsx(VideoPlayerComponent, { id:
|
51
|
+
return (_jsx(VideoPlayerComponent, { id: videoId, chapters: chapters, options: Object.assign(Object.assign({}, options), { tracks }), notes: notes, poster: "", startTime: startTime, handleSaveNoteAction: handleSaveNoteAction, disableNote: disableNote, onPause: onPause, onPlay: onPlay, childRef: childRef, bottomRedBar: bottomRedBar, noteButtonClick: noteButtonClick }));
|
52
52
|
});
|
53
53
|
const SoftBuildersVideoPlayer = memo(Component, (prevProps, nextProps) => {
|
54
54
|
return (isEqual(prevProps.options, nextProps.options) &&
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SoftBuildersVideoPlayer/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAO3D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,MAAM,eAAe,GAAmC;IACtD,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,GAAG;IACV,OAAO,EAAE,E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,EAClB,OAAO,kCAAO,OAAO,KAAE,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,GAChC,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"}
|
@@ -1,129 +1,133 @@
|
|
1
1
|
import React, { forwardRef, memo, useEffect, useState } from "react";
|
2
2
|
import VideoPlayerComponent from "../VideoPlayerComponent";
|
3
3
|
import {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
SoftBuildersVideoPlayerChapter,
|
5
|
+
SoftBuildersVideoPlayerNote,
|
6
|
+
SoftBuildersVideoPlayerOptions,
|
7
|
+
SoftBuildersVideoPlayerTrack,
|
8
8
|
} from "../../types";
|
9
9
|
import { convertSRTtoVTT } from "../../utils";
|
10
10
|
import { isEqual } from "lodash";
|
11
11
|
const DEFAULT_OPTIONS: SoftBuildersVideoPlayerOptions = {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
12
|
+
autoplay: false,
|
13
|
+
controls: true,
|
14
|
+
fluid: false,
|
15
|
+
muted: true,
|
16
|
+
height: 420,
|
17
|
+
width: 720,
|
18
|
+
sources: [],
|
19
|
+
tracks: [],
|
20
20
|
};
|
21
21
|
|
22
22
|
export type Props<T = any> = {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
23
|
+
options: SoftBuildersVideoPlayerOptions;
|
24
|
+
notes?: SoftBuildersVideoPlayerNote[];
|
25
|
+
chapters?: SoftBuildersVideoPlayerChapter[];
|
26
|
+
startTime?: number;
|
27
|
+
handleSaveNoteAction?: (time: number, note: string) => Promise<T>;
|
28
|
+
onPlay?: (time: number) => void;
|
29
|
+
onPause?: (time: number) => void;
|
30
|
+
isFocused?: boolean;
|
31
|
+
disableNote?: boolean;
|
32
|
+
bottomRedBar?: boolean;
|
33
|
+
childRef?: React.Ref<HTMLDivElement>;
|
34
|
+
noteButtonClick?: (e: any) => void;
|
35
|
+
videoId?: string;
|
36
36
|
};
|
37
37
|
|
38
38
|
const Component = forwardRef<HTMLDivElement, Props<any>>(
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
39
|
+
({
|
40
|
+
options,
|
41
|
+
notes,
|
42
|
+
chapters,
|
43
|
+
startTime = 0,
|
44
|
+
handleSaveNoteAction,
|
45
|
+
onPlay,
|
46
|
+
onPause,
|
47
|
+
isFocused = true,
|
48
|
+
disableNote,
|
49
|
+
childRef,
|
50
|
+
bottomRedBar,
|
51
|
+
noteButtonClick,
|
52
|
+
videoId,
|
53
|
+
}: Props<any>) => {
|
54
|
+
options = {
|
55
|
+
...options,
|
56
|
+
responsive: true,
|
57
|
+
inactivityTimeout: 0,
|
58
|
+
fullscreen: {
|
59
|
+
navigationUI: "hide",
|
60
|
+
},
|
61
|
+
} as any;
|
62
62
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
63
|
+
if (options.autoplay === undefined)
|
64
|
+
options.autoplay = DEFAULT_OPTIONS.autoplay;
|
65
|
+
if (options.controls === undefined)
|
66
|
+
options.controls = DEFAULT_OPTIONS.controls;
|
67
|
+
if (options.fluid === undefined) options.fluid = DEFAULT_OPTIONS.fluid;
|
68
|
+
if (options?.muted === undefined)
|
69
|
+
options.muted = DEFAULT_OPTIONS?.muted;
|
70
|
+
if (options.height === undefined)
|
71
|
+
options.height = DEFAULT_OPTIONS.height;
|
72
|
+
if (options.width === undefined) options.width = DEFAULT_OPTIONS.width;
|
71
73
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
74
|
+
const [tracks, setTracks] = useState<SoftBuildersVideoPlayerTrack[]>(
|
75
|
+
[]
|
76
|
+
);
|
77
|
+
useEffect(() => {}, [isFocused]);
|
78
|
+
useEffect(() => {
|
79
|
+
const getTracks = async () => {
|
80
|
+
const newTracks: SoftBuildersVideoPlayerTrack[] = [];
|
81
|
+
if (Array.isArray(options?.tracks))
|
82
|
+
for (const [i, s] of options?.tracks.entries()) {
|
83
|
+
let src = s.src;
|
80
84
|
|
81
|
-
|
82
|
-
|
83
|
-
|
85
|
+
if (s.memeType == "text/srt") {
|
86
|
+
src = await convertSRTtoVTT(s.src);
|
87
|
+
}
|
84
88
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
89
|
+
newTracks.push({
|
90
|
+
...s,
|
91
|
+
src,
|
92
|
+
});
|
93
|
+
}
|
90
94
|
|
91
|
-
|
92
|
-
|
95
|
+
setTracks(newTracks);
|
96
|
+
};
|
93
97
|
|
94
|
-
|
95
|
-
|
98
|
+
getTracks();
|
99
|
+
}, [options?.tracks]);
|
96
100
|
|
97
|
-
|
98
|
-
|
101
|
+
const id = (Date.now() + Math.random() * 100).toString();
|
102
|
+
console.log("id: ", id);
|
99
103
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
104
|
+
return (
|
105
|
+
<VideoPlayerComponent
|
106
|
+
id={videoId || ""}
|
107
|
+
chapters={chapters}
|
108
|
+
options={{ ...options, tracks }}
|
109
|
+
notes={notes}
|
110
|
+
poster=""
|
111
|
+
startTime={startTime}
|
112
|
+
handleSaveNoteAction={handleSaveNoteAction}
|
113
|
+
disableNote={disableNote}
|
114
|
+
onPause={onPause}
|
115
|
+
onPlay={onPlay}
|
116
|
+
childRef={childRef}
|
117
|
+
bottomRedBar={bottomRedBar}
|
118
|
+
noteButtonClick={noteButtonClick}
|
119
|
+
/>
|
120
|
+
);
|
121
|
+
}
|
118
122
|
);
|
119
123
|
|
120
124
|
const SoftBuildersVideoPlayer = memo(Component, (prevProps, nextProps) => {
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
125
|
+
return (
|
126
|
+
isEqual(prevProps.options, nextProps.options) &&
|
127
|
+
prevProps.notes === nextProps.notes &&
|
128
|
+
prevProps.chapters === nextProps.chapters &&
|
129
|
+
prevProps.startTime === nextProps.startTime
|
130
|
+
);
|
127
131
|
});
|
128
132
|
|
129
133
|
export default SoftBuildersVideoPlayer;
|
@@ -4,7 +4,6 @@ import ReactDOM from "react-dom/client";
|
|
4
4
|
import videojs from "video.js";
|
5
5
|
import "video.js/dist/video-js.css";
|
6
6
|
import ControlBar from "../ControlBar";
|
7
|
-
import { isEqual } from "lodash";
|
8
7
|
import "./style/style.css";
|
9
8
|
import "../../styles/tailwind.css";
|
10
9
|
import { SoftBuildersVideoPlayerProvider } from "./provider";
|
@@ -45,7 +44,7 @@ const renderControlBar = (id, player, isPaused, setIsPaused, duration, notes, ch
|
|
45
44
|
}
|
46
45
|
}
|
47
46
|
};
|
48
|
-
const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTime = 0, handleSaveNoteAction, poster, onPlay, onPause, disableNote, childRef, bottomRedBar = true, noteButtonClick, videoID, }) => {
|
47
|
+
const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTime = 0, handleSaveNoteAction, poster, onPlay, onPause, disableNote, childRef, bottomRedBar = true, noteButtonClick, videoID, }, ref) => {
|
49
48
|
const videoRef = useRef(undefined);
|
50
49
|
const playerRef = useRef(undefined);
|
51
50
|
const idRef = useRef(undefined);
|
@@ -94,24 +93,21 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
|
|
94
93
|
});
|
95
94
|
}
|
96
95
|
return () => {
|
97
|
-
var _a, _b;
|
98
96
|
if (playerRef.current) {
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
}, 0);
|
114
|
-
}
|
97
|
+
idRef.current = options;
|
98
|
+
playerRef.current.dispose();
|
99
|
+
playerRef.current = undefined;
|
100
|
+
console.log("dispose8: ");
|
101
|
+
setTimeout(() => {
|
102
|
+
if (bigPlayButtonRoot[id]) {
|
103
|
+
bigPlayButtonRoot[id].unmount();
|
104
|
+
bigPlayButtonRoot[id] = undefined;
|
105
|
+
}
|
106
|
+
if (controlBarRoot[id]) {
|
107
|
+
controlBarRoot[id].unmount();
|
108
|
+
controlBarRoot[id] = undefined;
|
109
|
+
}
|
110
|
+
}, 0);
|
115
111
|
// setTimeout(() => {
|
116
112
|
// if (bigPlayButtonRoot[id]) {
|
117
113
|
// bigPlayButtonRoot[id].unmount();
|
@@ -124,7 +120,7 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
|
|
124
120
|
// }, 0);
|
125
121
|
}
|
126
122
|
};
|
127
|
-
}, [
|
123
|
+
}, [id]);
|
128
124
|
// Added poster to dependency array
|
129
125
|
useEffect(() => {
|
130
126
|
if (playerRef.current) {
|
@@ -161,6 +157,7 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
|
|
161
157
|
duration,
|
162
158
|
opacity,
|
163
159
|
isReady,
|
160
|
+
id,
|
164
161
|
]);
|
165
162
|
useEffect(() => {
|
166
163
|
if (isReady) {
|
@@ -169,7 +166,7 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
|
|
169
166
|
}, 500);
|
170
167
|
return () => clearTimeout(playButtonTimeout);
|
171
168
|
}
|
172
|
-
}, [isPaused, opacity, isReady,
|
169
|
+
}, [isPaused, opacity, isReady, id]);
|
173
170
|
useEffect(() => {
|
174
171
|
if (playerRef.current) {
|
175
172
|
const intervalId = setInterval(() => {
|
@@ -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,GAE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AAE,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"}
|
@@ -126,22 +126,25 @@ export type Props<T = any> = {
|
|
126
126
|
videoID?: string;
|
127
127
|
};
|
128
128
|
const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
|
129
|
-
(
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
129
|
+
(
|
130
|
+
{
|
131
|
+
id,
|
132
|
+
options,
|
133
|
+
notes,
|
134
|
+
chapters,
|
135
|
+
startTime = 0,
|
136
|
+
handleSaveNoteAction,
|
137
|
+
poster,
|
138
|
+
onPlay,
|
139
|
+
onPause,
|
140
|
+
disableNote,
|
141
|
+
childRef,
|
142
|
+
bottomRedBar = true,
|
143
|
+
noteButtonClick,
|
144
|
+
videoID,
|
145
|
+
}: Props,
|
146
|
+
ref: any
|
147
|
+
) => {
|
145
148
|
const videoRef = useRef<any>(undefined);
|
146
149
|
const playerRef = useRef<Player | undefined>(undefined);
|
147
150
|
const idRef = useRef<any | undefined>(undefined);
|
@@ -196,22 +199,20 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
|
|
196
199
|
}
|
197
200
|
return () => {
|
198
201
|
if (playerRef.current) {
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
}, 0);
|
214
|
-
}
|
202
|
+
idRef.current = options;
|
203
|
+
playerRef.current.dispose();
|
204
|
+
playerRef.current = undefined;
|
205
|
+
console.log("dispose8: ");
|
206
|
+
setTimeout(() => {
|
207
|
+
if (bigPlayButtonRoot[id]) {
|
208
|
+
bigPlayButtonRoot[id].unmount();
|
209
|
+
bigPlayButtonRoot[id] = undefined;
|
210
|
+
}
|
211
|
+
if (controlBarRoot[id]) {
|
212
|
+
controlBarRoot[id].unmount();
|
213
|
+
controlBarRoot[id] = undefined;
|
214
|
+
}
|
215
|
+
}, 0);
|
215
216
|
|
216
217
|
// setTimeout(() => {
|
217
218
|
// if (bigPlayButtonRoot[id]) {
|
@@ -225,7 +226,7 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
|
|
225
226
|
// }, 0);
|
226
227
|
}
|
227
228
|
};
|
228
|
-
}, [
|
229
|
+
}, [id]);
|
229
230
|
// Added poster to dependency array
|
230
231
|
|
231
232
|
useEffect(() => {
|
@@ -280,6 +281,7 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
|
|
280
281
|
duration,
|
281
282
|
opacity,
|
282
283
|
isReady,
|
284
|
+
id,
|
283
285
|
]);
|
284
286
|
useEffect(() => {
|
285
287
|
if (isReady) {
|
@@ -294,7 +296,7 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
|
|
294
296
|
}, 500);
|
295
297
|
return () => clearTimeout(playButtonTimeout);
|
296
298
|
}
|
297
|
-
}, [isPaused, opacity, isReady,
|
299
|
+
}, [isPaused, opacity, isReady, id]);
|
298
300
|
useEffect(() => {
|
299
301
|
if (playerRef.current) {
|
300
302
|
const intervalId = setInterval(() => {
|
package/dist/index.mjs
CHANGED
@@ -1373,7 +1373,6 @@ var ControlBar = ({
|
|
1373
1373
|
});
|
1374
1374
|
container && resizeObserver.observe(container);
|
1375
1375
|
const togglePlay = (e) => {
|
1376
|
-
console.log(player.currentTime());
|
1377
1376
|
e.preventDefault();
|
1378
1377
|
e.stopPropagation();
|
1379
1378
|
if (isPaused) player == null ? void 0 : player.play();
|
@@ -1526,9 +1525,6 @@ var ControlBar = ({
|
|
1526
1525
|
};
|
1527
1526
|
var ControlBar_default = ControlBar;
|
1528
1527
|
|
1529
|
-
// src/components/VideoPlayerComponent/index.tsx
|
1530
|
-
import { isEqual } from "lodash";
|
1531
|
-
|
1532
1528
|
// src/components/BigPlayButton/index.tsx
|
1533
1529
|
import { jsx as jsx35 } from "react/jsx-runtime";
|
1534
1530
|
var BigPlayButton = ({ player, isPaused, setIsPaused }) => {
|
@@ -1633,7 +1629,7 @@ var VideoPlayerComponent = forwardRef(
|
|
1633
1629
|
bottomRedBar = true,
|
1634
1630
|
noteButtonClick,
|
1635
1631
|
videoID
|
1636
|
-
}) => {
|
1632
|
+
}, ref) => {
|
1637
1633
|
const videoRef = useRef2(void 0);
|
1638
1634
|
const playerRef = useRef2(void 0);
|
1639
1635
|
const idRef = useRef2(void 0);
|
@@ -1682,27 +1678,24 @@ var VideoPlayerComponent = forwardRef(
|
|
1682
1678
|
});
|
1683
1679
|
}
|
1684
1680
|
return () => {
|
1685
|
-
var _a, _b;
|
1686
1681
|
if (playerRef.current) {
|
1687
|
-
|
1688
|
-
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1694
|
-
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1698
|
-
|
1699
|
-
|
1700
|
-
|
1701
|
-
}, 0);
|
1702
|
-
}
|
1682
|
+
idRef.current = options;
|
1683
|
+
playerRef.current.dispose();
|
1684
|
+
playerRef.current = void 0;
|
1685
|
+
console.log("dispose8: ");
|
1686
|
+
setTimeout(() => {
|
1687
|
+
if (bigPlayButtonRoot[id]) {
|
1688
|
+
bigPlayButtonRoot[id].unmount();
|
1689
|
+
bigPlayButtonRoot[id] = void 0;
|
1690
|
+
}
|
1691
|
+
if (controlBarRoot[id]) {
|
1692
|
+
controlBarRoot[id].unmount();
|
1693
|
+
controlBarRoot[id] = void 0;
|
1694
|
+
}
|
1695
|
+
}, 0);
|
1703
1696
|
}
|
1704
1697
|
};
|
1705
|
-
}, [
|
1698
|
+
}, [id]);
|
1706
1699
|
useEffect14(() => {
|
1707
1700
|
if (playerRef.current) {
|
1708
1701
|
console.log("time");
|
@@ -1752,7 +1745,8 @@ var VideoPlayerComponent = forwardRef(
|
|
1752
1745
|
handleSaveNoteAction,
|
1753
1746
|
duration,
|
1754
1747
|
opacity,
|
1755
|
-
isReady
|
1748
|
+
isReady,
|
1749
|
+
id
|
1756
1750
|
]);
|
1757
1751
|
useEffect14(() => {
|
1758
1752
|
if (isReady) {
|
@@ -1767,7 +1761,7 @@ var VideoPlayerComponent = forwardRef(
|
|
1767
1761
|
}, 500);
|
1768
1762
|
return () => clearTimeout(playButtonTimeout);
|
1769
1763
|
}
|
1770
|
-
}, [isPaused, opacity, isReady,
|
1764
|
+
}, [isPaused, opacity, isReady, id]);
|
1771
1765
|
useEffect14(() => {
|
1772
1766
|
if (playerRef.current) {
|
1773
1767
|
const intervalId = setInterval(() => {
|
@@ -1936,7 +1930,7 @@ var VideoPlayerComponent = forwardRef(
|
|
1936
1930
|
var VideoPlayerComponent_default = VideoPlayerComponent;
|
1937
1931
|
|
1938
1932
|
// src/components/SoftBuildersVideoPlayer/index.tsx
|
1939
|
-
import { isEqual
|
1933
|
+
import { isEqual } from "lodash";
|
1940
1934
|
import { jsx as jsx37 } from "react/jsx-runtime";
|
1941
1935
|
var DEFAULT_OPTIONS = {
|
1942
1936
|
autoplay: false,
|
@@ -2004,7 +1998,7 @@ var Component = forwardRef2(
|
|
2004
1998
|
return /* @__PURE__ */ jsx37(
|
2005
1999
|
VideoPlayerComponent_default,
|
2006
2000
|
{
|
2007
|
-
id:
|
2001
|
+
id: videoId,
|
2008
2002
|
chapters,
|
2009
2003
|
options: __spreadProps(__spreadValues({}, options), { tracks }),
|
2010
2004
|
notes,
|
@@ -2022,7 +2016,7 @@ var Component = forwardRef2(
|
|
2022
2016
|
}
|
2023
2017
|
);
|
2024
2018
|
var SoftBuildersVideoPlayer = memo(Component, (prevProps, nextProps) => {
|
2025
|
-
return
|
2019
|
+
return isEqual(prevProps.options, nextProps.options) && prevProps.notes === nextProps.notes && prevProps.chapters === nextProps.chapters && prevProps.startTime === nextProps.startTime;
|
2026
2020
|
});
|
2027
2021
|
var SoftBuildersVideoPlayer_default = SoftBuildersVideoPlayer;
|
2028
2022
|
|