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

latest
Source
npmnpm
Version
1.2.4
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source
# React Vid Player

A customizable React video player component with advanced controls, keyboard shortcuts, and modern UI.

<p align="center">
  <img src="/assets/player.png" alt="React Vid Player Preview" width="800" />
</p>

## Installation

```bash
npm install reactvidplay
```

Usage

import React from "react";
import { ReactVidPlayer } from "reactvidplay";
import "reactvidplay/dist/ReactVidPlayer.css"; // Import CSS

function App() {
  return (
    <div>
      <ReactVidPlayer
        src="https://example.com/video.mp4"
        width="800px"
        height="450px"
        color="#ff0000"
      />
    </div>
  );
}

export default App;

Features

  • ✨ Custom video controls with modern design
  • ⌨️ Keyboard shortcuts (Space, Arrow keys)
  • 🔊 Volume control with slider
  • 📱 Picture-in-picture support
  • 🖥️ Fullscreen support
  • 🎨 Customizable theme color
  • 📱 Mobile responsive

Keyboard Shortcuts

  • Space → Play/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 class
colorstring'#ff0000'Theme color for controls
onPlayfunction-Called when video starts
onPausefunction-Called when video pauses
onTimeUpdatefunction-Called on time update
onEndedfunction-Called when video ends

License

MIT

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