Created
November 1, 2023 16:23
-
-
Save rahulmore01/4daa3b0b0df5519a96aef1068f2eb249 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use client"; | |
| import React from "react"; | |
| import ReactPlayer from "react-player"; | |
| const VideoPlayer = () => { | |
| let videosrc = "/videos/next.mp4"; | |
| return ( | |
| <div> | |
| <h1>my custome player</h1> | |
| <ReactPlayer | |
| width="500px" | |
| height="400px" | |
| url={videosrc} | |
| controls={true} | |
| light={false} | |
| pip={true} | |
| /> | |
| <source src={videosrc} type="video/mp4" /> | |
| </div> | |
| ); | |
| }; | |
| export default VideoPlayer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment