[251103] fix: VideoPlayer,MediaPlayer warning resolved

🕐 커밋 시간: 2025. 11. 03. 21:02:13

📊 변경 통계:
  • 총 파일: 5개
  • 추가: +54줄
  • 삭제: -5줄

📝 수정된 파일:
  ~ com.twin.app.shoptime/src/actions/playActions.js
  ~ com.twin.app.shoptime/src/components/MediaPlayer/MediaKnob.js
  ~ com.twin.app.shoptime/src/components/MediaPlayer/MediaSlider.js
  ~ com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/ProductVideo/ProductVideo.v2.jsx
  ~ com.twin.app.shoptime/src/views/HomePanel/HomeBanner/HomeBanner.jsx

🔧 주요 변경 내용:
  • 핵심 비즈니스 로직 개선
  • UI 컴포넌트 아키텍처 개선
  • 소규모 기능 개선
This commit is contained in:
2025-11-03 21:02:14 +09:00
parent ac76c5d3ac
commit 3601ce890b
5 changed files with 54 additions and 5 deletions

View File

@@ -24,6 +24,20 @@ let startVideoTimer = null;
//start modal mode
//start Full -> modal mode
let startVideoFocusTimer = null;
// 🔽 전역 타이머 정리 함수 - 메모리 누수 방지
export const clearAllVideoTimers = () => {
if (startVideoFocusTimer) {
clearTimeout(startVideoFocusTimer);
startVideoFocusTimer = null;
console.log('[playActions] startVideoFocusTimer cleared');
}
if (startVideoTimer) {
clearTimeout(startVideoTimer);
startVideoTimer = null;
console.log('[playActions] startVideoTimer cleared');
}
};
export const startVideoPlayer =
({ modal, modalContainerId, modalClassName, spotlightDisable, useNewPlayer, ...rest }) =>
(dispatch, getState) => {