[251124] fix: PlayerPanel,VideoPlayer 최적화-4 HLS 버퍼길이 제한

🕐 커밋 시간: 2025. 11. 24. 18:09:05

📊 변경 통계:
  • 총 파일: 3개
  • 추가: +19줄

📝 수정된 파일:
  ~ com.twin.app.shoptime/src/components/VideoPlayer/TReactPlayer.jsx
  ~ 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-24 18:09:06 +09:00
parent 1a7657ef01
commit 40fff810aa
3 changed files with 19 additions and 0 deletions

View File

@@ -2004,12 +2004,27 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
crossOrigin: 'true',
},
tracks: [{ kind: 'subtitles', src: currentSubtitleBlob, default: true }],
hlsOptions: {
// 버퍼 길이 축소로 메모리 사용 완화
maxBufferLength: 10,
maxMaxBufferLength: 30,
liveSyncDuration: 5,
liveMaxLatencyDuration: 10,
},
},
youtube: YOUTUBECONFIG,
};
} else {
return {
youtube: YOUTUBECONFIG,
file: {
hlsOptions: {
maxBufferLength: 10,
maxMaxBufferLength: 30,
liveSyncDuration: 5,
liveMaxLatencyDuration: 10,
},
},
};
}
}, [currentSubtitleBlob, isSubtitleActive]);