[PlayerPanel] overlayLoading 삭제

This commit is contained in:
고동영
2024-06-28 15:49:58 +09:00
parent 86b077e1b8
commit 209ddcc0a6
6 changed files with 117 additions and 169 deletions

View File

@@ -22,8 +22,6 @@ export default function TReactPlayer({
mediaEventsMap = handledMediaEventsMap,
videoRef,
url,
overlayLoading,
setOverlayLoading,
...rest
}) {
const playerRef = useRef(null);
@@ -32,10 +30,6 @@ export default function TReactPlayer({
(type) => (ev) => {
if (type === "onReady") {
if (videoRef) {
if (!overlayLoading) {
setOverlayLoading(true);
}
const videoNode = playerRef.current.getInternalPlayer();
videoRef(videoNode);
if (
@@ -122,7 +116,7 @@ export default function TReactPlayer({
}
handle.forward("onUpdate", { type, ev }, rest);
},
[videoRef, overlayLoading]
[videoRef]
);
const handledMediaEvents = useMemo(() => {