home live full 화면에서 modal 전환시 로그 전송 추가

This commit is contained in:
opacity@t-win.kr
2025-10-02 14:05:19 +09:00
parent 89cedb4044
commit 37d5b8abb1
2 changed files with 16 additions and 12 deletions

View File

@@ -48,6 +48,7 @@ import SingleProduct from "./SingleProduct/SingleProduct";
import ThemeProduct from "./ThemeProduct/ThemeProduct"; import ThemeProduct from "./ThemeProduct/ThemeProduct";
import UnableProduct from "./UnableProduct/UnableProduct"; import UnableProduct from "./UnableProduct/UnableProduct";
import YouMayLike from "./YouMayLike/YouMayLike"; import YouMayLike from "./YouMayLike/YouMayLike";
import { now } from "lodash";
export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) { export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
const dispatch = useDispatch(); const dispatch = useDispatch();
@@ -195,7 +196,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
liveFlag: "Y", liveFlag: "Y",
qrType: "billingDetail", qrType: "billingDetail",
}); });
}, [serverHOST, serverType, deviceInfo, entryMenu, nowMenu, productInfo]); }, [serverHOST, serverType, deviceInfo, entryMenu, productInfo]);
const onSpotlightUpTButton = (e) => { const onSpotlightUpTButton = (e) => {
e.stopPropagation(); e.stopPropagation();

View File

@@ -316,17 +316,19 @@ const PlayerPanel = ({
const mediaLogParamsRef = useRef(null); const mediaLogParamsRef = useRef(null);
const prevNowMenuRef = useRef(null); const prevNowMenuRef = useRef(null);
const watchInterval = useRef(null); const watchInterval = useRef(null);
// useEffect(() => {
// console.log("###videoLoaded", videoLoaded);
// if (nowMenu) {
// }
// }, [videoLoaded]);
const currentLiveShowInfo = useMemo(() => { const currentLiveShowInfo = useMemo(() => {
if (liveShowInfos && liveShowInfos.length > 0) { if (liveShowInfos && liveShowInfos.length > 0) {
const panelInfoChanId = panelInfo?.chanId; const panelInfoChanId = panelInfo?.chanId;
const isLive = panelInfo?.shptmBanrTpNm === "LIVE"; const isLive = panelInfo?.shptmBanrTpNm === "LIVE";
const isModal = panelInfo?.modal;
if (isLive) { 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 // const liveShowInfo = liveShowInfos //
.find(({ chanId }) => panelInfoChanId === chanId); .find(({ chanId }) => panelInfoChanId === chanId);
@@ -337,7 +339,12 @@ const PlayerPanel = ({
} }
return {}; return {};
}, [liveShowInfos, panelInfo?.chanId, panelInfo?.shptmBanrTpNm]); }, [
liveShowInfos,
panelInfo?.chanId,
panelInfo?.shptmBanrTpNm,
panelInfo?.modal,
]);
const currentVODShowInfo = useMemo(() => { const currentVODShowInfo = useMemo(() => {
if (showDetailInfo && showDetailInfo.length > 0) { if (showDetailInfo && showDetailInfo.length > 0) {
@@ -362,10 +369,6 @@ const PlayerPanel = ({
return () => dispatch(sendLogGNB(prevNowMenuRef.current)); return () => dispatch(sendLogGNB(prevNowMenuRef.current));
} }
// 통합로그 관련 : al_banner_shown 관련
// else if (panelInfo?.modal) {
// dispatch(sendLogGNB(entryMenu));
// }
}, [panelInfo?.modal, panelInfo?.shptmBanrTpNm]); }, [panelInfo?.modal, panelInfo?.shptmBanrTpNm]);
// creating live log params // creating live log params