npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@amdadullah_raihan/react-custom-video-player

v1.4.3

Published

A customizable and modern video player built with React and Tailwind CSS.

Readme

React Custom Video Player

A fully customizable and modern video player component built with React.

🔴 See Live Demo

A sneak peek of the React Custom Video Player in action.

React custom video player demo

🚀 Installation

Install the package via npm:

npm install @amdadullah_raihan/react-custom-video-player

💡 Usage

import { useRef } from "react";
import { VideoPlayer } from "@amdadullah_raihan/react-custom-video-player";
import "@amdadullah_raihan/react-custom-video-player/dist/react-custom-video-player.css";

function App() {
  const videoRef = useRef(null);

  return (
    <VideoPlayer
      ref={videoRef}
      title="JavaScript Basics"
      skipTime={10}
      src="https://example.com/video.mp4"
    />
  );
}

🎛 Props

| Prop | Type | Default | Description | | ---------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------- | | title | string | "" | The video title | | skipTime | number | 10 | Seconds to skip on forward/rewind | | src | string | https://res.cloudinary.com/djv2ujxgy/video/upload/v1740465372/courses/67bd6083318babfd4e0805b1/modules/67bd6362318babfd4e0806c7/lessons/u86n2issdtecvvhyahpy.mp4 | The video source URL |

🎉 Features

  • Default Youtube video support
  • Custom controls
  • Keyboard accessible
  • Picture-in-Picture
  • Theater mode
  • Volume control
  • Playback speed control

🎮 How to Use / Controls

▶️ Play / Pause

  • Click the play/pause button
  • Press Space

⏩ Seek Forward

  • Click the forward button
  • Press (Right Arrow)

⏪ Seek Backward

  • Click the rewind button
  • Press (Left Arrow)

⏳ Timeline Control

  • Click anywhere on the progress bar to jump to that point
  • Drag the thumb/pointer to scrub through the video
  • Scroll your mouse wheel over the timeline to fine-tune the position

🔊 Volume Control

  • Use the volume slider or scroll over it
  • Press / to increase or decrease volume
  • Press M to mute/unmute

🔲 Fullscreen & Modes

  • Fullscreen: Click the fullscreen button or press F
  • Picture-in-Picture (PiP): Click the PiP button or press P
  • Theater Mode: Press T to toggle

🎚 Playback Speed

  • Use the speed selector
  • Press Shift + . to increase
  • Press Shift + , to decrease

🛠 Development

To clone and start the development server:

git clone https://github.com/amdadullah-raihan/react-custom-video-player.git
cd react-custom-video-player
npm install
npm run dev

📄 License

MIT License. See LICENSE for more details.