←
Video.js635 posts
Video.js avatar

Video.js

@videojs

HTML Video and Audio Player. Join the conversation at discord.gg/KX6dhX2mYJ

◷ Joined August 2010▧ 7 Photos and videos
Video.js avatar
Video.js@videojs·Nov 15

Save your time. Save your tokens. Just use Video.js.

Video and video players are really hard, and I wish more people knew the extent of it. One common mistake that will happen until the end of time, especially with AI now, is devs trying to build players with application UI component libraries. I've spent years building player frameworks. If it were truly that simple, I wouldn't have spent a second on it. A player is an app inside your app. The state isn't owned by your app, not fully, it's owned by the media. It's async. It can leave the page entirely (mount/unmount), and specific state resets when the provider or source changes. Capabilities exist or don't depending on the browser, device, media, and source. Managing all of this state alone is _very_ hard. There are also specific accessibility requirements for each component, and UI/UX expectations around a player. A time slider is not a standard slider. The value moves on its own. Seeking is async, and browsers report stale times mid-seek, so the thumb snaps back after you let go. A lot of bugs will surface on slow networks. Duration can be NaN (no metadata) or Infinity (live). It needs buffered progress, chapters and hover previews. Screen readers need time phrases like "1 minute 23 seconds of 10 minutes", not "83". Time updates are choppy and inconsistent, so you need your own rAF loop. Media buttons aren't just buttons. Fullscreen on iPhone takes only the video and drops your controls. Every button usually includes capability checks and state transitions. Certain UI components need special treatment in fullscreen and picture-in-picture. Playback state changes need to be announced to screen readers. Ensuring the player functions consistently across different browsers adds another layer of complexity. Browsers may have varying levels of support or distinct APIs for certain media features. And that's just some of it with an MP4. Add streaming (HLS/DASH), live, quality, audio tracks, captions, remote playback (AirPlay, Google Cast) and DRM, and it just keeps getting more complicated. I could go on forever. None of this is generic. We do a ton of work over on @videojs so you don't have to think about any of it. We want it on the surface to feel like you're working with just another UI library, and for the player to feel like part of your app. But it isn't one underneath.

Ruy Monteiro avatar
⟳ Video.js retweeted
Ruy Monteiro@ruyymon·Nov 12

A closer look at a few details I love: chapters, shortcuts, and RTL support. Built on @videojs 10. Huge thanks to the @MuxHQ team for the guidance 🙏

0:58

Video player

0:11
Rahim avatar
⟳ Video.js retweeted
Rahim@mihar_22·Nov 12

Looks beautiful, Ruy! I love seeing devs build on @videojs. This is exactly why we built the library the way we did. We wanted it to easily integrate it with YOUR application and design system. Perfect example :)

A closer look at a few details I love: chapters, shortcuts, and RTL support. Built on @videojs 10. Huge thanks to the @MuxHQ team for the guidance 🙏

0:58
Video.js avatar
Video.js@videojs·Nov 12

😍

A closer look at a few details I love: chapters, shortcuts, and RTL support. Built on @videojs 10. Huge thanks to the @MuxHQ team for the guidance 🙏

0:58
Video.js avatar
Video.js@videojs·Oct 29

Very excited to have @CultRepo making a documentary about the project and the new version. Check out the trailer!

In 2010, a weekend experiment with HTML5 video became the web’s most-used open source player. 15 years later, Video.js’s creator came back to rebuild it. This is the story of Video.js. Watch the full trailer now on CultRepo: youtube.com/watch?v=gCZEKiP3… Documentary goes live on 5 November at 7:30pm CET.

1:04
Video.js avatar
Video.js@videojs·Oct 27

Video players are basically Lego now. Pull in the components with @shadcn and build whatever you want!

you can now ship production-ready video players with @shadcn + @videojs 🎬 - dozens of components/themes - composable & typed like Base UI - easy to customize - accessible by default - 40% smaller bundles, new streaming engine - 21 media providers (video, hls.js, youtube, ...)

0:36
Cult.Repo avatar
⟳ Video.js retweeted
Cult.Repo@CultRepo·Oct 23

On 29 April 2010, Steve Jobs published "Thoughts on Flash", an open letter giving six reasons iPhones and iPads would not run Adobe's plugin. It changed how the web plays video. Jobs argued that flash was proprietary, crashed Macs, had a poor security record, drained batteries, relied on mouse hovers touchscreens lack, and put a third-party layer between Apple and its developers. Apple backed open web standards instead (HTML5, CSS, JavaScript) and H.264 video. Critics noted H.264 was patented too. It didn't matter. Adobe dropped mobile Flash in 2011, YouTube made HTML5 its default in 2015, and Adobe ended Flash support on 31 December 2020. That left every site that wanted video on iPhones and iPads with a problem: play without a plugin, on an HTML5 video element that was new and inconsistent. Video.js, a weekend experiment by Steve Heffernan at Zencoder, was one of the first soltuions. Our upcoming film tells that story, and what happened in 2025, when Steve came back and Video.js started over. Video.js: The Documentary is coming... Trailer: Thursday 29 October at 11:30am PDT Premieres Live on 5 November on CultRepo YT at 10:30am PST @MuxHQ @videojs @heff @jondahl @mihar_22 @luwes @sam_potts

Post attachment
Video.js avatar
Video.js@videojs·Oct 8

Bundle size was a top priority as we built Video.js v10. And we're still working on it!

This tweet is unavailable

Video.js avatar
Video.js@videojs·Oct 7

Video on the top screen, controls on the bottom, all built from Video.js v10 components and some CSS. It needs Safari feature flags today, but it's a good look at what composable v10 makes possible. @darius_cepulis breaks it down in a thread and blog post:

Apple finally decided it's my turn to fold a phone. So I spent the weekend seeing if I could rebuild Netflix's folded iPhone Duo player on the web. This is Video.js 10 in Safari. Pretty close! 🧵

0:03
Video.js avatar
Video.js@videojs·Oct 6

Plyr has been one of the best-loved players on the web for years, and that's all Sam. We're lucky he brought that same care to Video.js 10. Thank you @sam_potts, and welcome Plyr folks. You'll feel at home 🫶

Plyr is now officially deprecated and it's time to give Video.js 10 a whirl! plyr.io/ Thanks for all the support over the years! 🙏

Video.js avatar
Video.js@videojs·Oct 2

Friends ran for 10 seasons. David Tennant was the 10th Doctor Who. The Great Longneck Migration was the 10th Land Before Time. VJS 10 is now GA. Smol, customizable, and plays nice with your agents so they can help you migrate like Littlefoot. videojs.org/blog/videojs-10

Video.js avatar
Video.js@videojs·Mar 10

Reboot time, baby. After 16 years, we teamed up with Plyr, Vidstack and Media Chrome to make the open source player that the web deserves (again). Check out the v10 blog post, try it out, and give us feedback. videojs.org/blog/videojs-v10…

Video.js avatar
Video.js@videojs·9 Sep 2022

A bit of news... this week there are Video.js 8.0 and VHS 3.0 release candidates available on GitHub and npm. You can try either of them out under the npm tag `rc`!