From cc49ae2d43dcf02a2b07ee70e5e5b3d09d3c7d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B3=A0=EB=8F=99=EC=98=81?= Date: Tue, 22 Oct 2024 16:02:28 +0900 Subject: [PATCH] =?UTF-8?q?TReactPlay=20videoNode.pause=20=EC=A1=B0?= =?UTF-8?q?=EA=B1=B4=EB=AC=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/VideoPlayer/TReactPlayer.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/com.twin.app.shoptime/src/components/VideoPlayer/TReactPlayer.jsx b/com.twin.app.shoptime/src/components/VideoPlayer/TReactPlayer.jsx index de107532..f61dba6e 100644 --- a/com.twin.app.shoptime/src/components/VideoPlayer/TReactPlayer.jsx +++ b/com.twin.app.shoptime/src/components/VideoPlayer/TReactPlayer.jsx @@ -65,7 +65,6 @@ export default function TReactPlayer({ } else if ( !Object.prototype.hasOwnProperty.call(videoNode, "proportionPlayed") ) { - videoNode.play = videoNode.playVideo; videoNode.pause = videoNode.pauseVideo; videoNode.seek = videoNode.seekTo; @@ -141,7 +140,7 @@ export default function TReactPlayer({ useEffect(() => { return () => { const videoNode = playerRef.current?.getInternalPlayer(); - if (videoNode) { + if (videoNode && videoNode.pause) { videoNode.pause(); videoNode.src = ""; videoNode.srcObject = null;