From 16381d89e0980da004b4420d03c8c9d02e53e210 Mon Sep 17 00:00:00 2001 From: optrader Date: Wed, 12 Nov 2025 13:01:08 +0900 Subject: [PATCH] =?UTF-8?q?[251112]=20feat=20MediaPlayer=EC=97=90=20?= =?UTF-8?q?=EC=8B=A4=EC=8B=9C=EA=B0=84=20=EC=9E=AC=EC=83=9D=EC=83=81?= =?UTF-8?q?=ED=83=9C=20=EB=A1=9C=EA=B9=85=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 재생상태를 콘솔에 실시간으로 로깅해 디버깅 효율성을 높임 🕐 커밋 시간: 2025. 11. 12. 13:01:07 📊 변경 통계: • 총 파일: 1개 • 추가: +17줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/components/VideoPlayer/MediaPlayer.jsx 🔧 주요 변경 내용: • UI 컴포넌트 아키텍처 개선 --- .../src/components/VideoPlayer/MediaPlayer.jsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/com.twin.app.shoptime/src/components/VideoPlayer/MediaPlayer.jsx b/com.twin.app.shoptime/src/components/VideoPlayer/MediaPlayer.jsx index fff746a0..834deef1 100644 --- a/com.twin.app.shoptime/src/components/VideoPlayer/MediaPlayer.jsx +++ b/com.twin.app.shoptime/src/components/VideoPlayer/MediaPlayer.jsx @@ -1428,6 +1428,23 @@ const VideoPlayerBase = class extends React.Component { return; } + // 🎬 실시간 재생상태 로깅 + if (ev.type === 'onUpdate' || ev.type === 'onPlay' || ev.type === 'onPause' || ev.type === 'onStart' || ev.type === 'onLoadStart') { + console.log('🎬 [MediaPlayer] 재생상태 실시간 로깅', { + eventType: ev.type, + currentTime: el.currentTime, + duration: el.duration, + paused: el.paused, + playbackRate: el.playbackRate, + loading: el.loading, + error: el.error, + stateLoading: this.state.loading, // 🎬 MediaPlayer 내부 loading 상태도 확인 + panelInfoModal: this.props.panelInfo?.modal, + timestamp: new Date().getTime(), + stack: new Error().stack?.split('\n')[2]?.trim(), + }); + } + this.type = this.props.type; updatedState.currentTime =