home live full 화면에서 modal 전환시 로그 전송 추가
This commit is contained in:
@@ -316,17 +316,19 @@ const PlayerPanel = ({
|
||||
const mediaLogParamsRef = useRef(null);
|
||||
const prevNowMenuRef = useRef(null);
|
||||
const watchInterval = useRef(null);
|
||||
// useEffect(() => {
|
||||
// console.log("###videoLoaded", videoLoaded);
|
||||
// if (nowMenu) {
|
||||
// }
|
||||
// }, [videoLoaded]);
|
||||
|
||||
const currentLiveShowInfo = useMemo(() => {
|
||||
if (liveShowInfos && liveShowInfos.length > 0) {
|
||||
const panelInfoChanId = panelInfo?.chanId;
|
||||
const isLive = panelInfo?.shptmBanrTpNm === "LIVE";
|
||||
|
||||
const isModal = panelInfo?.modal;
|
||||
if (isLive) {
|
||||
// live full 화면에서 modal 전환시 로그 전송 추가
|
||||
if (isModal) {
|
||||
dispatch(sendLogGNB(Config.LOG_MENU.FULL));
|
||||
prevNowMenuRef.current = nowMenuRef.current;
|
||||
return () => dispatch(sendLogGNB(prevNowMenuRef.current));
|
||||
}
|
||||
const liveShowInfo = liveShowInfos //
|
||||
.find(({ chanId }) => panelInfoChanId === chanId);
|
||||
|
||||
@@ -337,7 +339,12 @@ const PlayerPanel = ({
|
||||
}
|
||||
|
||||
return {};
|
||||
}, [liveShowInfos, panelInfo?.chanId, panelInfo?.shptmBanrTpNm]);
|
||||
}, [
|
||||
liveShowInfos,
|
||||
panelInfo?.chanId,
|
||||
panelInfo?.shptmBanrTpNm,
|
||||
panelInfo?.modal,
|
||||
]);
|
||||
|
||||
const currentVODShowInfo = useMemo(() => {
|
||||
if (showDetailInfo && showDetailInfo.length > 0) {
|
||||
@@ -362,10 +369,6 @@ const PlayerPanel = ({
|
||||
|
||||
return () => dispatch(sendLogGNB(prevNowMenuRef.current));
|
||||
}
|
||||
// 통합로그 관련 : al_banner_shown 관련
|
||||
// else if (panelInfo?.modal) {
|
||||
// dispatch(sendLogGNB(entryMenu));
|
||||
// }
|
||||
}, [panelInfo?.modal, panelInfo?.shptmBanrTpNm]);
|
||||
|
||||
// creating live log params
|
||||
|
||||
Reference in New Issue
Block a user