핫픽스 영상 재생되도록 테스트영상 추가.
This commit is contained in:
@@ -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 (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user