[251012] fix: MediaPlayer FullScreen Overlay
🕐 커밋 시간: 2025. 10. 12. 06:49:48 📊 변경 통계: • 총 파일: 3개 • 추가: +53줄 • 삭제: -32줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/actions/mediaActions.js ~ com.twin.app.shoptime/src/components/VideoPlayer/MediaPlayer.jsx ~ com.twin.app.shoptime/src/views/MediaPanel/MediaPanel.jsx 🔧 주요 변경 내용: • 핵심 비즈니스 로직 개선 • UI 컴포넌트 아키텍처 개선 • 소규모 기능 개선 • 코드 정리 및 최적화
This commit is contained in:
@@ -97,6 +97,19 @@ const MediaPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
|
||||
// MediaPanel에서는 VOD pause 상태 관리 불필요 (단순 재생만)
|
||||
}, []);
|
||||
|
||||
// PlayerOverlayContents에서 필요한 더미 함수들
|
||||
const setSideContentsVisible = useCallback(() => {
|
||||
// MediaPanel에서는 사이드 컨텐츠 사용 안 함
|
||||
}, []);
|
||||
|
||||
const handleIndicatorDownClick = useCallback(() => {
|
||||
// MediaPanel에서는 indicator 사용 안 함
|
||||
}, []);
|
||||
|
||||
const handleIndicatorUpClick = useCallback(() => {
|
||||
// MediaPanel에서는 indicator 사용 안 함
|
||||
}, []);
|
||||
|
||||
// modal 스타일 설정
|
||||
useEffect(() => {
|
||||
if (panelInfo.modal && panelInfo.modalContainerId) {
|
||||
@@ -326,6 +339,14 @@ const MediaPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
|
||||
setIsSubtitleActive={setIsSubtitleActive}
|
||||
setCurrentTime={setCurrentTime}
|
||||
setIsVODPaused={setIsVODPaused}
|
||||
// PlayerOverlayContents props (빈 배열로 전달하여 null 에러 방지)
|
||||
playListInfo={[]}
|
||||
selectedIndex={0}
|
||||
videoVerticalVisible={false}
|
||||
sideContentsVisible={false}
|
||||
setSideContentsVisible={setSideContentsVisible}
|
||||
handleIndicatorDownClick={handleIndicatorDownClick}
|
||||
handleIndicatorUpClick={handleIndicatorUpClick}
|
||||
>
|
||||
{typeof window === 'object' && window.PalmSystem && (
|
||||
<source src={currentPlayingUrl} type={videoType} />
|
||||
|
||||
Reference in New Issue
Block a user