fix: 선택약관 4차수정 250622

This commit is contained in:
djaco
2025-06-22 22:19:57 +09:00
parent f0418b3c2b
commit 556a0e8456
23 changed files with 4437 additions and 477 deletions

View File

@@ -1535,8 +1535,24 @@ const PlayerPanel = ({
if (broadcast.type === "videoError") {
return null;
}
// For previews, always use the direct URL from panelInfo.
if (panelInfo.modal) {
return panelInfo.showUrl;
}
// For fullscreen, the playlist is the primary source.
if (playListInfo && playListInfo.length > 0 && playListInfo[selectedIndex]?.showUrl) {
return playListInfo[selectedIndex]?.showUrl;
}
// Fallback for fullscreen if playlist isn't ready, use panelInfo URL.
if (!panelInfo.modal && panelInfo.showUrl) {
return panelInfo.showUrl;
}
return playListInfo && playListInfo[selectedIndex]?.showUrl;
}, [playListInfo, selectedIndex, broadcast]);
}, [panelInfo, playListInfo, selectedIndex, broadcast]);
const isYoutube = useMemo(() => {
if (currentPlayingUrl && currentPlayingUrl.includes("youtu")) {