aboutsummaryrefslogtreecommitdiff
path: root/src/app/movies/components/videoPlayer.jsx
blob: b7cdd81a2c5fad56096d6ffb49c2ab11e3d9b0d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const MovieVideoPlayer = async ({ id: id }) => {
	const videoFrameGenerator = (id) => {
		return (
			<iframe
				src={`https://vidsrc.pro/embed/movie/${id}`}
				allowFullScreen
				referrerPolicy="origin"
				height={720}
				className="w-full h-[240px] lg:h-[720px]"
			></iframe>
		);
	};

	return <section>{videoFrameGenerator(id)}</section>;
};

export default MovieVideoPlayer;