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

videojs-react-thumbnail-player

v1.2.0

Published

Custom Video.js React player component featuring automatic MPEG-DASH & WebVTT timeline thumbnail preview support, quality selector, subtitles, PiP, and full keyboard shortcuts.

Readme

videojs-react-thumbnail-player

A highly customizable, premium Video.js React player component featuring automatic MPEG-DASH & WebVTT timeline thumbnail previews, HLS support, quality selection, subtitles, Picture-in-Picture (PiP), and full keyboard shortcuts.

Features

  • 🎨 Modern Premium UI: Fully custom settings menu, control bar, and offline banners with smooth animations and glassmorphism styling.
  • 🎞️ Thumbnail Previews: Automatic support for WebVTT and MPEG-DASH thumbnail sprites on the progress bar hover.
  • ⚙️ Quality & Speed Selection: Built-in resolution switcher for multi-quality streams (DASH/HLS) and playback rate controls.
  • 🗣️ Audio & Subtitles: Multi-audio track selection and native WebVTT subtitle support.
  • ⌨️ Keyboard Shortcuts: Native support for Space (play/pause), F (fullscreen), M (mute), arrow keys (seek/volume), and more.
  • 📦 Zero-Config Styling: CSS is automatically injected into the bundle (vite-plugin-css-injected-by-js). No need to manually import external stylesheets.

Installation

npm install videojs-react-thumbnail-player @videojs/react hls.js

(Note: @videojs/react and hls.js are required peer dependencies.)

Basic Usage

You can import the universal player (which auto-detects HLS or DASH), or import specialized players to reduce your application's bundle size by excluding heavy dependencies (like hls.js) if you don't need them.

Universal Import (Auto-detect)

import React from "react";
import VideoPlayer from "videojs-react-thumbnail-player";

const App = () => {
  return (
    <VideoPlayer
      src="https://dash.akamaized.net/akamai/bbb_30fps/bbb_with_4_tiles_thumbnails.mpd"
      thumbnailsVtt="thumbnails.vtt"
    />
  );
};

Dash Only Import (Excludes HLS)

import { DashPlayer } from "videojs-react-thumbnail-player";

const App = () => {
  return (
    <DashPlayer src="https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd" />
  );
};

HLS Only Import (Excludes Dash)

import { HlsPlayer } from "videojs-react-thumbnail-player";

const App = () => {
  return (
    <HlsPlayer src="http://sample.vodobox.com/planete_interdite/planete_interdite_alternate.m3u8" />
  );
};

Base Player Import (MP4 / Native only)

import { BasePlayer } from "videojs-react-thumbnail-player";

const App = () => {
  return <BasePlayer src="https://media.w3.org/2010/05/sintel/trailer.mp4" />;
};

Development

To run the local development server with the demo application:

npm install
npm run dev

To build the library bundle for production:

npm run build