
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
reactvidplay
Advanced tools
Here’s a polished README.md tailored for your react-videoplayer package. I’ve written it the way an experienced open-source maintainer would structure it—clear, professional, and developer-friendly:
A customizable React video player component with modern UI, keyboard shortcuts, and advanced controls. Built for developers who want a lightweight yet feature-rich alternative to default HTML video controls.
npm install react-videoplayer lucide-react
or with yarn:
yarn add react-videoplayer lucide-react
import React from "react";
import { ReactVidPlayer } from "react-videoplayer";
import "react-videoplayer/dist/ReactVidPlayer.css";
function App() {
return (
<div>
<ReactVidPlayer
src="https://example.com/video.mp4"
width="800px"
height="450px"
controls
color="#ff0000"
onPlay={() => console.log("Video started")}
onPause={() => console.log("Video paused")}
/>
</div>
);
}
export default App;
| Key | Action |
|---|---|
Space | Play / Pause |
← | Skip backward 10s |
→ | Skip forward 10s |
↑ | Volume up |
↓ | Volume down |
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | required | Video source URL |
controls | boolean | true | Show custom controls |
autoplay | boolean | false | Auto play video |
muted | boolean | false | Mute video initially |
loop | boolean | false | Loop video |
contextMenu | boolean | false | Enable right-click context menu |
poster | string | - | Poster image URL |
width | string | number | '100%' | Video width |
height | string | number | 'auto' | Video height |
className | string | '' | Additional CSS classes |
color | string | '#ff0000' | Theme color for controls |
onPlay | () => void | - | Callback when video starts |
onPause | () => void | - | Callback when video pauses |
onTimeUpdate | (time: number) => void | - | Called on playback time update |
onEnded | () => void | - | Callback when video ends |
MIT © 2025 – Maintained by Your Name
👉 Pro tip: you should also add a screenshot or short demo gif in the README to show off the UI. That massively improves adoption on npm/GitHub.
Do you want me to also write a package.json metadata (keywords, description, repo links, etc.) optimized for npm discovery so your package ranks better?
FAQs
A good looking customizable React video player component
The npm package reactvidplay receives a total of 0 weekly downloads. As such, reactvidplay popularity was classified as not popular.
We found that reactvidplay demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.