Skip to content

Instantly share code, notes, and snippets.

@rahulmore01
Created November 1, 2023 16:23
Show Gist options
  • Save rahulmore01/4daa3b0b0df5519a96aef1068f2eb249 to your computer and use it in GitHub Desktop.
Save rahulmore01/4daa3b0b0df5519a96aef1068f2eb249 to your computer and use it in GitHub Desktop.
"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