핫픽스 영상 재생되도록 테스트영상 추가.

This commit is contained in:
junghoon86.park
2024-05-02 18:49:44 +09:00
parent ebe981cca3
commit 9103cb0ed5

View File

@@ -111,33 +111,33 @@ export default function TCFV_4({
[onSpotlightUp]
);
// useEffect(() => {
// const playingJobValue = playingJob.current;
useEffect(() => {
const playingJobValue = playingJob.current;
// if (currentPage === orders - 1) {
// playingJobValue.start(() => {
// dispatch(
// startVideoPlayer({
// showId: "660aa1d3bee0ddaf3b329e78",
// // showId: data[0].showId,
// patnrId: "1",
// // patnrId: data[0].patnrId,
// shptmBanrTpNm: "VOD",
// modal: true,
// modalContainerId: spotName, //to calc width, height, left, top
// modalClassName: css.videoModal,
// })
// ),
// Spotlight.focus("videoPlayer");
// });
// } else {
// dispatch(finishVideoPreview());
// }
if (currentPage === orders - 1) {
playingJobValue.start(() => {
dispatch(
startVideoPlayer({
showId: "660aa1d3bee0ddaf3b329e78",
// showId: data[0].showId,
patnrId: "1",
// patnrId: data[0].patnrId,
shptmBanrTpNm: "VOD",
modal: true,
modalContainerId: spotName, //to calc width, height, left, top
modalClassName: css.videoModal,
})
),
Spotlight.focus("videoPlayer");
});
} else {
dispatch(finishVideoPreview());
}
// return () => {
// playingJobValue.stop();
// };
// }, [dispatch, currentPage, orders]);
return () => {
playingJobValue.stop();
};
}, [dispatch, currentPage, orders]);
return (
<>