Lurker News
What do you do when private equity buys your old company and fires the maintainers of the popular open source project you started over a decade ago? You reboot it, and bring along some new friends to do it.

Video.js is used by billions of people every month, on sites like Amazon.com, Linkedin, and Dropbox, and yet it wasn’t in great shape. A skeleton crew of maintainers were doing their best with a dated architecture, but it needed more. So Sam from Plyr, Rahim from Vidstack, and Wes and Christain from Media Chrome jumped in to help me rebuild it better, faster, and smaller.
It’s in beta now. Please give it a try and tell us what breaks.

Comments (137) 54 threads

Earlier comments
taosx1 reply#
Are there any plans to support other frontend frameworks? If I wanted to use it today in something like svelte how should I go about it?
rahim_alwer#
We are designing with the goal of supporting more frameworks like Svelte and Vue specifically, even as far as React Native! We just don’t know when exactly yet but a large part of our approach in v10 is to make sure we can deliver the best possible experience to each frontend framework. It’s important for us that the integrations don’t feel like wrappers but truly idiomatic.

In the meantime, we’re hoping our custom elements will act as a good stopgap. Most frameworks including Svelte support them well, and we’re pouring love into the APIs so they feel good to use regardless of which framework.
If you’re interested in peeking under the hood, architecturally we’re taking a similar approach to TanStack and separating out a shared core from the beginning, but with one added step of splitting out the DOM as well to aid in supporting RN one day.

swaminarayan1 reply#
What were the biggest architectural changes in the rewrite, and what tradeoffs did you make compared to the old Video.js design?
Heff#
The biggest architectural move at multiple layers of the stack was moving from monolithic controller objects to composable, tree-shakeable components, functions and state slices. Less trade-offs and more taking advantage of modern JS bundlers.
EdgeNRoots2 replies#
88% reduction is wild. Did most of that come from eliminating dependencies or rewriting core components from scratch?
k4rli#
Opening the article and reading beyond the title would answer that question.
Heff#
Full rewrite and an intentional architecture to allow for composability and tree shaking, meaning the player bundle only ever includes the features you're using.
ronak_parmar1 reply#
Great Work, Loved the approach.
Heff#
Thank you!

Load more comments