finds.dev← search

// the find

surmon-china/videojs-player

★ 5,444 · TypeScript · MIT · updated Aug 2022

@videojs player component for @vuejs(3) and React.

Thin wrapper components that adapt Video.js for Vue 3 and React, handling lifecycle, prop reactivity, and event forwarding so you don't have to wire that up yourself. The target audience is anyone embedding Video.js in a modern framework who doesn't want to manage the imperative API manually. It's a solid layer of glue, not a player implementation.

The reactive prop system is the main reason to use this — changing `src`, `volume`, or `playbackRate` at the component level actually calls the right Video.js API method rather than reconstructing the player. The exposed `state` object gives you a clean snapshot of player internals without subscribing to individual events yourself. TypeScript coverage is genuine: props and state are fully typed against the Video.js API. Both packages share a core player module, so the Vue and React implementations stay in sync without duplication.

The last commit was August 2022, nearly four years ago, and neither package has been touched since. Video.js has shipped several releases in that window; whether that breaks anything is something you'd have to discover at runtime. The test suite (one file per package) is thin enough that 'Codecov badge present' doesn't mean much. There's no SSR story documented — Video.js and the DOM are deeply coupled, so Next.js or Nuxt users will hit hydration pain that the README doesn't acknowledge. The rename from vue-video-player also means npm search results are fragmented and the legacy package still floats around, which creates confusion about which package to actually install.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →