🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

bitplayer

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitplayer

A beautiful, minimalistic, modern HTML5 video player

1.0.2
latest
Source
npm
Version published
Weekly downloads
9
800%
Maintainers
0
Weekly downloads
 
Created
Source

BitPlayer

A beautiful, minimalistic, modern HTML5 video player with React support.

Visitors npm version License: MIT PRs Welcome GitHub issues

Features

  • 🎨 Minimalistic and modern design
  • 🎯 Highly customizable
  • 📱 Fully responsive
  • ⌨️ Keyboard shortcuts
  • 🎛️ Advanced controls (quality, playback speed, volume)
  • 📺 Full-screen support
  • 🎭 Picture-in-Picture
  • 🔊 Volume controls with mute toggle
  • ⏱️ Custom time display
  • 🎯 Seeking preview thumbnails
  • 🎨 Customizable themes
  • ⚛️ React component available

Installation

Via NPM

npm install bitplayer

Via CDN

<link rel="stylesheet" href="https://unpkg.com/bitplayer/dist/bitplayer.css">
<script src="https://unpkg.com/bitplayer/dist/bitplayer.js"></script>

Usage

Vanilla JavaScript

<div class="bitplayer-container">
  <video id="my-video" class="bitplayer">
    <source src="path/to/video.mp4" type="video/mp4">
  </video>
</div>

<script>
  const player = new BitPlayer('#my-video', {
    autoplay: false,
    muted: false,
    controls: true
  });
</script>

React

import { BitPlayer } from 'bitplayer';
import 'bitplayer/dist/bitplayer.css';

function App() {
  return (
    <BitPlayer
      src="path/to/video.mp4"
      autoPlay={false}
      muted={false}
      controls={true}
    />
  );
}

Documentation

For detailed documentation, visit documentation.

License

MIT © sh20raj

Keywords

video-player

FAQs

Package last updated on 10 Jan 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