diff --git a/src/components/Vod/TheaterModeIcon.module.css b/src/components/Vod/TheaterModeIcon.module.css
index df314e6..e40885e 100644
--- a/src/components/Vod/TheaterModeIcon.module.css
+++ b/src/components/Vod/TheaterModeIcon.module.css
@@ -1,14 +1,7 @@
.theaterIcon {
- position: absolute;
- top: 0;
- right: 0;
- z-index: 100;
- padding: 0.5rem;
cursor: pointer;
color: #f5f5f5;
transition: all 0.2s ease-in-out;
-
-
}
.customFullScreenButton {
color: #f5f5f5;
diff --git a/src/components/Vod/TheaterModeIcon.tsx b/src/components/Vod/TheaterModeIcon.tsx
index 118f62b..da0a327 100644
--- a/src/components/Vod/TheaterModeIcon.tsx
+++ b/src/components/Vod/TheaterModeIcon.tsx
@@ -22,7 +22,7 @@ const TheaterModeIcon = () => {
onTouchStart={toggleTheaterMode}
className={classes.customFullScreenButton}
>
-
+
diff --git a/src/components/Vod/VideoPlayer.tsx b/src/components/Vod/VideoPlayer.tsx
index f30a290..5e65359 100644
--- a/src/components/Vod/VideoPlayer.tsx
+++ b/src/components/Vod/VideoPlayer.tsx
@@ -41,31 +41,16 @@ const NewVideoPlayer = ({ vod }: any) => {
const [videoPoster, setVideoPoster] = useState("");
const [videoTitle, setVideoTitle] = useState("");
const startedPlayback = useRef(false);
- const [playerIsHovered, setPlayerIsHovered] = useState(true);
const [isFullscreen, setIsFullscreen] = useState(false);
const searchParams = useSearchParams()
- const handleHover = () => {
- setPlayerIsHovered(true);
- };
-
- const handleMouseLeave = () => {
- setPlayerIsHovered(false);
- };
-
- const handleTouch = () => {
- setPlayerIsHovered(!playerIsHovered);
- };
-
useEffect(() => {
eventBus.on("theaterMode", (data) => {
setIsFullscreen(data);
});
}, []);
-
-
// Fetch playback data
const { data } = useQuery({
refetchOnWindowFocus: false,
@@ -172,20 +157,6 @@ const NewVideoPlayer = ({ vod }: any) => {
player.current!.currentTime = parseInt(time);
}
- // const mediaFullscreenButton = document.querySelector("#media-menu-2");
- // console.log(mediaFullscreenButton)
- // const buttonContainer = document.createElement("div");
-
- // if (mediaFullscreenButton) {
- // mediaFullscreenButton.parentNode.insertBefore(
- // buttonContainer,
- // mediaFullscreenButton.nextSibling
- // );
- // // Render the button component inside the container
- // ReactDOM.render(, buttonContainer);
- // }
-
-
}, [data, player]);
@@ -262,18 +233,12 @@ const NewVideoPlayer = ({ vod }: any) => {
src={videoSource}
aspect-ratio={16 / 9}
ref={player}
- crossorigin
- onMouseEnter={handleHover}
- onMouseLeave={handleMouseLeave}
- onTouchStart={handleTouch}
- playsinline
+ crossOrigin={true}
+ playsInline={true}
>
- {playerIsHovered && (
-
- )}
-
+ ,
+ }}
+ />
);