mediahub-fe/utils/video-player.tsx

47 lines
854 B
TypeScript
Raw Permalink Normal View History

2024-12-13 14:33:59 +00:00
import React from "react";
import ReactPlayer from "react-player";
type VideoPlayerProps = {
url: string;
};
const VideoPlayer: React.FC<VideoPlayerProps> = ({ url }) => {
return (
2025-09-12 07:48:11 +00:00
// <ReactPlayer
// className="react-player"
// width="100%"
// height="100%"
// playing
// pip
// controls
// config={{
// file: {
// attributes: {
// controlsList: "nodownload",
// },
// },
// }}
// url={url}
// />
2024-12-13 14:33:59 +00:00
<ReactPlayer
className="react-player"
width="100%"
2025-08-04 03:38:49 +00:00
height="100%"
2024-12-13 14:33:59 +00:00
controls
2025-09-12 07:48:11 +00:00
playing
muted
pip={false} //
2024-12-13 14:33:59 +00:00
config={{
file: {
attributes: {
2025-09-12 07:48:11 +00:00
controlsList: "nodownload",
2024-12-13 14:33:59 +00:00
},
},
}}
url={url}
/>
);
};
2025-09-12 07:48:11 +00:00
export default VideoPlayer;