[251125] fix: VideoPlayer 수정-1

🕐 커밋 시간: 2025. 11. 25. 20:41:57

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

📝 수정된 파일:
  ~ com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.js
  ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx

🔧 주요 변경 내용:
  • UI 컴포넌트 아키텍처 개선
  • 코드 정리 및 최적화
This commit is contained in:
2025-11-25 20:41:58 +09:00
parent 3c435a9e21
commit f47c1ecdf7
2 changed files with 13 additions and 13 deletions

View File

@@ -883,10 +883,10 @@ const VideoPlayerBase = class extends React.Component {
this.props.belowContentsVisible !== undefined && this.props.belowContentsVisible !== undefined &&
prevProps.belowContentsVisible !== this.props.belowContentsVisible prevProps.belowContentsVisible !== this.props.belowContentsVisible
) { ) {
if (this.props.belowContentsVisible && !this.state.mediaControlsVisible) { if (this.props.belowContentsVisible) {
// TabContainerV2가 표시될 때 controls도 표시 // TabContainerV2가 표시될 때 controls도 표시
this.showControls(); this.showControls();
} else if (!this.props.belowContentsVisible && this.state.mediaControlsVisible) { } else {
// TabContainerV2가 숨겨질 때 controls도 숨김 // TabContainerV2가 숨겨질 때 controls도 숨김
this.hideControls(); this.hideControls();
} }

View File

@@ -2006,13 +2006,13 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
}, },
tracks: [{ kind: 'subtitles', src: currentSubtitleBlob, default: true }], tracks: [{ kind: 'subtitles', src: currentSubtitleBlob, default: true }],
hlsOptions: { hlsOptions: {
// 버퍼 길이를 30초 기준으로 설정 // 버퍼 길이를 60초 기준으로 설정
maxBufferLength: 30, maxBufferLength: 60,
maxMaxBufferLength: 90, maxMaxBufferLength: 180,
backBufferLength: 0, backBufferLength: 0,
maxBufferSize: 30 * 1000 * 1000, // 최대 버퍼 크기 30MB maxBufferSize: 100 * 1000 * 1000, // 최대 버퍼 크기 100MB
liveSyncDuration: 8, liveSyncDuration: 16,
liveMaxLatencyDuration: 16, liveMaxLatencyDuration: 32,
}, },
}, },
youtube: YOUTUBECONFIG, youtube: YOUTUBECONFIG,
@@ -2025,12 +2025,12 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
preload: 'metadata', preload: 'metadata',
}, },
hlsOptions: { hlsOptions: {
maxBufferLength: 30, maxBufferLength: 60,
maxMaxBufferLength: 90, maxMaxBufferLength: 180,
backBufferLength: 0, backBufferLength: 0,
maxBufferSize: 30 * 1000 * 1000, maxBufferSize: 100 * 1000 * 1000,
liveSyncDuration: 8, liveSyncDuration: 16,
liveMaxLatencyDuration: 16, liveMaxLatencyDuration: 32,
}, },
}, },
}; };