[251019] fix: Background Video
🕐 커밋 시간: 2025. 10. 19. 21:30:53 📊 변경 통계: • 총 파일: 10개 • 추가: +86줄 • 삭제: -42줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/actions/mainActions.js ~ com.twin.app.shoptime/src/actions/playActions.js ~ com.twin.app.shoptime/src/reducers/mainReducer.js ~ com.twin.app.shoptime/src/views/DetailPanel/DetailPanel.jsx ~ com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx ~ com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/ProductVideo/ProductVideo.v2.jsx ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/v2/TabContainer.v2.jsx ~ com.twin.app.shoptime/src/views/UserReview/ShowUserReviews.jsx ~ com.twin.app.shoptime/src/views/UserReview/UserReviewPanel.jsx 🔧 함수 변경 내용: 📄 com.twin.app.shoptime/src/actions/mainActions.js (javascript): 🔄 Modified: clearSubCategory() 📄 com.twin.app.shoptime/src/actions/playActions.js (javascript): ❌ Deleted: resumeModalVideo() 📄 com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx (javascript): ✅ Added: extractProductMeta() 📄 com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/v2/TabContainer.v2.jsx (javascript): 🔄 Modified: Spottable() 📄 com.twin.app.shoptime/src/views/UserReview/ShowUserReviews.jsx (javascript): ✅ Added: ShowUserReviews() ❌ Deleted: ShowUserReviews() 🔧 주요 변경 내용: • 핵심 비즈니스 로직 개선
This commit is contained in:
@@ -356,26 +356,13 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
|
||||
|
||||
// 새로운 useEffect 추가 (라인 328 이후)
|
||||
useEffect(() => {
|
||||
// console.log('[BgVideo] PlayerPanel useEffect - panelInfo:', {
|
||||
// modal: panelInfo?.modal,
|
||||
// isPaused: panelInfo?.isPaused,
|
||||
// hasVideoPlayer: !!videoPlayer.current
|
||||
// });
|
||||
|
||||
// modal 여부와 관계없이 videoPlayer가 있고 isPaused 값이 명시적일 때 제어
|
||||
if (videoPlayer.current && panelInfo?.isPaused !== undefined) {
|
||||
if (panelInfo.isPaused === true) {
|
||||
// console.log('[BgVideo] PlayerPanel - Executing pause via videoPlayer.current');
|
||||
videoPlayer.current.pause();
|
||||
} else if (panelInfo.isPaused === false) {
|
||||
// console.log('[BgVideo] PlayerPanel - Executing play via videoPlayer.current');
|
||||
videoPlayer.current.play();
|
||||
}
|
||||
} else {
|
||||
console.log('[BgVideo] PlayerPanel - Skipping video control:', {
|
||||
hasVideoPlayer: !!videoPlayer.current,
|
||||
isPausedValue: panelInfo?.isPaused,
|
||||
});
|
||||
}
|
||||
}, [panelInfo?.isPaused]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user