🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more
Socket
Book a DemoInstallSign in
Socket

reactvidplay

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

reactvidplay

A good looking customizable React video player component

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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:

React Video Player

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.

React Vid Player Demo

🚀 Installation

npm install react-videoplayer lucide-react

or with yarn:

yarn add react-videoplayer lucide-react

⚡ Usage

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;

✨ Features

  • 🎛️ Custom video controls with a clean, modern UI
  • ⌨️ Keyboard shortcuts for quick navigation
  • 🔊 Volume control & mute toggle with slider
  • 🎥 Picture-in-Picture support
  • 🖥️ Fullscreen mode with smooth transition
  • 🎨 Customizable theme color via props
  • 📱 Mobile responsive & touch-friendly
  • 🖱️ Optional context menu (disable right-click download menu)
  • 🕹️ Auto-hide controls when inactive

⌨️ Keyboard Shortcuts

KeyAction
SpacePlay / Pause
Skip backward 10s
Skip forward 10s
Volume up
Volume down

⚙️ Props

PropTypeDefaultDescription
srcstringrequiredVideo source URL
controlsbooleantrueShow custom controls
autoplaybooleanfalseAuto play video
mutedbooleanfalseMute video initially
loopbooleanfalseLoop video
contextMenubooleanfalseEnable right-click context menu
posterstring-Poster image URL
widthstring | number'100%'Video width
heightstring | number'auto'Video height
classNamestring''Additional CSS classes
colorstring'#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

🛠️ Roadmap

  • Add support for subtitles/captions
  • Quality switcher for multiple sources
  • HLS/DASH streaming support
  • Customizable keyboard shortcuts

📜 License

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?

Keywords

react

FAQs

Package last updated on 02 Sep 2025

Did you know?

Socket

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.

Install

Related posts