[ProductVideoV2] 비디오 오버레이 표시 로직 개선
작은 화면에서는 오버레이를 숨기고, 전체화면에서만 표시하도록 수정 - panelInfo.modal 값을 동적으로 설정 (!isFullscreen) - noAutoShowMediaControls 추가로 일반 모드에서 자동 표시 방지 - HomeBanner/PlayerPanel의 동작 방식과 동일하게 개선 이제 DetailPanel의 ProductVideoV2도 다음과 같이 동작: 1. 썸네일 클릭 → 작은 화면 재생 (오버레이 숨김) 2. 엔터/클릭 → 전체화면 전환 (오버레이 표시) 3. 일정 시간 후 오버레이 자동 숨김
This commit is contained in:
@@ -411,6 +411,7 @@ export default function ProductVideoV2({
|
||||
onEnded={handleVideoEnded}
|
||||
onBackButton={handleBackButton}
|
||||
noAutoPlay={false}
|
||||
noAutoShowMediaControls={!isFullscreen}
|
||||
autoCloseTimeout={5000}
|
||||
spotlightDisabled={!isFullscreen}
|
||||
isYoutube={isYoutube}
|
||||
@@ -422,7 +423,7 @@ export default function ProductVideoV2({
|
||||
(typeof window === 'object' && !window.PalmSystem) || isYoutube ? TReactPlayer : Media
|
||||
}
|
||||
type="MEDIA"
|
||||
panelInfo={{ modal: false }}
|
||||
panelInfo={{ modal: !isFullscreen }}
|
||||
captionEnable={false}
|
||||
setIsSubtitleActive={setIsSubtitleActive}
|
||||
setCurrentTime={setCurrentTime}
|
||||
|
||||
Reference in New Issue
Block a user