Live data from Hacker News

Show HN: I took back Video.js after 16 years and we rewrote it to be 88% smaller

videojs.org

131–140 of 170 posts

Re: Show HN: I took back Video.js after 16 years and we rewrote it to be 88% smaller

#131
post #48

Earlier quoted context omitted.

Thank you for your feedback. Yep I definitely understand that Video.js is just the front end. I want to avoid using Wowza / Red5 and just want to serve chunks of video files, essentially, buffering them and pasting them to the "end of the stream" laying down tracks ahead of the video.js train riding over those tracks. So I'm just wondering whether we can do streaming that way, and video.js can "just work" to play the…

You should check out HLS and DASH. If you're already familiar and you're not using them because they don't meet your requirements, then apologies for the foolish recommendation. If not, this could solve your problem.

I second that it sounds like HLS/DASH (Adaptive live streaming over HTTP) is what you're looking for, instead of RTP/RTMP.

WebRTC being a more open model for real-time streaming, but nowhere near as easy or scalable HTTP-based streaming today.

However we can all also start getting excited about MoQ [1][2].

[1] https://moq.dev/

[2] https://www.youtube.com/watch?v=BluV8WBGnHY

Re: Show HN: I took back Video.js after 16 years and we rewrote it to be 88% smaller

#132
post #94

Sibling comment didn't elaborate, but I think they might be onto something. It happened to me personally - LLMs and agentic coding tools enabled me to pick up old side projects and actually finish them. Some of these projects were in the drawer for years, and when Sonnet 4 released I gave them another try and got up to speed really quickly. I suspect this happened to many developers.

(We detached this subthread from https://news.ycombinator.com/item?id=47514723 so it wouldn't go down with that ship)

Re: Show HN: I took back Video.js after 16 years and we rewrote it to be 88% smaller

#133

88% reduction is wild. Did most of that come from eliminating dependencies or rewriting core components from scratch?

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.

Re: Show HN: I took back Video.js after 16 years and we rewrote it to be 88% smaller

#134

What were the biggest architectural changes in the rewrite, and what tradeoffs did you make compared to the old Video.js design?

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.

Re: Show HN: I took back Video.js after 16 years and we rewrote it to be 88% smaller

#135
post #72

Awesome! And thank you all for your projects and your hard work! I hope the plugin directory get an overhaul too and a prominent place an the webpage. The plugin ecosystem was for me a huge benefit for Video.js Even though some of them are outdated, they were a good source of inspiration.

Absolutely! The community has always been the strongest part of the project.

In the new version the core player itself is built as many composable components rather than one monolithic player, so we're going to invite more people to contribute their "plugins" to the core repo as more of those composable components. Versioning plugins and keeping them up to date has always been a challenge, so we're thinking this will help keep the whole ecosystem working well together.

Re: Show HN: I took back Video.js after 16 years and we rewrote it to be 88% smaller

#136
post #103

Earlier quoted context omitted.

> Most browsers don't support HLS or DASH. Most can via media source extensions.

But that's not native. That's how videojs+HLS.js works, it plugs in the MSE to handle HLS.

Using plain video element plus HLS.js is not complicated or difficult.

Re: Show HN: I took back Video.js after 16 years and we rewrote it to be 88% smaller

#138

In case anyone's wondering, this website's syntax highlighting color scheme is called "gruvbox", which I quite like but took an embarrassingly long time to track down https://github.com/morhetz/gruvbox

I have been seeing this theme trending a lot lately, it’s so good

Recently I am using a variation that looks like gruvbox a bit but has some tweaks to it https://marketplace.visualstudio.com/items?itemName=hrose.am...

Re: Show HN: I took back Video.js after 16 years and we rewrote it to be 88% smaller

#139
post #56
post #46

I've never used video.js, and the site/advertising seems to be fairly oriented towards people who have used it or are familiar with it. I had one question I couldn't answer reading the site: what makes this different from the native html video element? AFAICT just the transport controls?

Fair point, we could answer that more directly on the site. Besides the comparison were there other things that make it seem oriented to people already familiar with it? Generally, the video tag is great and has come a very long way from when Video.js was first created. If the way you think about video is basically an image with a play button, then the video tag works well. If at some point you need Video.js, it'll b…

Part of what makes AI useful to me is getting though the layers of "what the hell is this, exactly" that slow you down when you jump more than one level beyond your domain knowledge. I think every knowledge container (document, website, what have you) should have a "what the hell is this" link /rich tooltip /accordion section /whatever by default.

Of course, AI explanations often also fail at this unless you give them "ELI5" or other relevant prompting (I'm looking at you Perplexity).

Re: Show HN: I took back Video.js after 16 years and we rewrote it to be 88% smaller

#140

In case anyone's wondering, this website's syntax highlighting color scheme is called "gruvbox", which I quite like but took an embarrassingly long time to track down https://github.com/morhetz/gruvbox

I have been seeing this theme trending a lot lately, it’s so good Recently I am using a variation that looks like gruvbox a bit but has some tweaks to it https://marketplace.visualstudio.com/items?itemName=hrose.am...

Gruvbox is oooollld, at least from my recollection. Been around at least since I started using vim maybe 15 years ago.
Post reply on HN