kontenhumas-fe/utils/video-player.tsx

47 lines
850 B
TypeScript
Raw Permalink Normal View History

2025-09-16 08:29:07 +00:00
import React from "react";
import ReactPlayer from "react-player";
type VideoPlayerProps = {
url: string;
};
const VideoPlayer: React.FC<VideoPlayerProps> = ({ url }) => {
return (
2025-09-23 13:07:34 +00:00
// <ReactPlayer
// className="react-player"
// width="100%"
// height="100%"
// playing
// pip
// controls
// config={{
// file: {
// attributes: {
// controlsList: "nodownload",
// },
// },
// }}
// url={url}
// />
2025-09-16 08:29:07 +00:00
<ReactPlayer
className="react-player"
width="100%"
height="100%"
controls
2025-09-23 13:07:34 +00:00
playing
muted
2025-10-19 16:07:42 +00:00
pip={false}
2025-09-16 08:29:07 +00:00
config={{
file: {
attributes: {
2025-09-23 13:07:34 +00:00
controlsList: "nodownload",
2025-09-16 08:29:07 +00:00
},
},
}}
url={url}
/>
);
};
2025-09-23 13:07:34 +00:00
export default VideoPlayer;