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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-advanced-video-player

v1.2.4

Published

React Advanced Video Player is a customizable and feature-rich video player for React applications. It supports multiple video formats, subtitles, quality selection, Picture-in-Picture mode, playback speed adjustment, and more, providing a seamless media

Readme

React Advanced Video Player

A powerful and customizable React video player built with modern features and an intuitive API.

📑 RAVP Documentation

🚀 Features

  • 🎥 Supports multiple video formats (MP4, WebM, Ogg, etc.)
  • 🎨 Customizable UI (Themes, Controls, and Layouts)
  • 🔄 Auto-play, Loop, and Mute options
  • 🖥 Full-screen & Picture-in-Picture (PiP) mode
  • 🎚 Adjustable playback speed and quality settings
  • 🔧 Keyboard shortcuts for quick controls
  • 🌐 Cross-browser & mobile-friendly
  • 🎭 Subtitle support
  • 🔄 Quality selection
  • 🔒 Lockable controls

📦 Installation

Install the package via npm or yarn:

npm install react-advanced-video-player

or

yarn add react-advanced-video-player

📌 Usage

Import and use the component in your React application:

import React from "react";
import VideoPlayer from "react-advanced-video-player";
import "react-advanced-video-player/src/components/VideoPlayer/style.css";

const App = () => {
  return (
    <VideoPlayer
      sources={[{ src: "https://www.example.com/sample-video.mp4", quality: "720p" }]}
      subtitles={[{ src: "https://www.example.com/subtitles.vtt", srclang: "en", label: "English" }]}
      poster="https://www.example.com/video-thumbnail.jpg"
      controls
      autoplay={false}
      loop={false}
      pip
      volume={0.8}
      onNext={() => console.log("Next video")}
      onPrevious={() => console.log("Previous video")}
    />
  );
};

export default App;

🛠 Props

| Prop | Type | Default | Description | | ------------------------- | ---------- | -------- | ------------------------------------------------------- | | sources | Array | Required | Array of video sources with quality options. | | subtitles | Array | [] | Array of subtitle tracks (WebVTT format). | | poster | String | "" | Poster image shown before video plays. | | isDeveloperModeDisabled | Boolean | true | Set to false to enable developer tools in the player. | | controls | Boolean | true | Show/hide built-in video controls. | | autoplay | Boolean | false | Start video playback automatically. | | loop | Boolean | false | Restart video after finishing. | | muted | Boolean | false | Start playback in a muted state. | | pip | Boolean | false | Enable Picture-in-Picture mode. | | volume | Number | 1.0 | Set default volume level (between 0 and 1). | | onNext | Function | null | Callback function for the "Next" video action. | | onPrevious | Function | null | Callback function for the "Previous" video action. |

🎯 Advanced Configuration

Custom Styles

You can apply custom styles by passing a className prop:

<VideoPlayer className="custom-video-player" />

Event Handlers

Handle player events for better control:

<VideoPlayer
  sources={[{ src: "https://www.example.com/sample-video.mp4", quality: "720p" }]}
  onPlay={() => console.log("Video Started")}
  onPause={() => console.log("Video Paused")}
  onEnded={() => console.log("Video Ended")}
  onNext={() => console.log("Next Video")}
  onPrevious={() => console.log("Previous Video")}
/>

📜 License

This project is licensed under the MIT License.

🔗 Auther Details

portfolio linkedin

📞 Support

For any issues or feature requests, feel free to open an issue or reach out via email.