Skip to content
r.

hls.js

video-dev/hls.js · Public GitHub repository

HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

hls.js live demo screenshot
Captured from the live demo · 2026-11-06

About this project

Author-written excerpt from the project README.

HLS.js is a JavaScript library that implements an [HTTP Live Streaming] client. It relies on [HTML5 video] and [MediaSource Extensions] for playback, and on [Managed Media Source] where MSE is not available (Safari on iOS 17.1+).

It streams VOD, Live, and Low-Latency HLS assets made up of fragmented MP4 (fMP4), MPEG-2 Transport Stream, or Packed Audio segments. fMP4 segments (ISO BMFF, including CMAF) are passed through to MSE without remuxing, while MPEG-2 TS and Packed Audio (AAC, MP3, and AC-3) segments are transmuxed into fMP4. Transmuxing is performed asynchronously using a [Web Worker] when available in the browser.

HLS.js streams media into a standard HTML element, which handles decoding, rendering, playback, and seeking. Control playback through the [HTMLMediaElement] API, and use HLS.js to load assets, choose quality levels and tracks, and listen for streaming events. For assets with Interstitials, use hls.interstitialsManager to seek and track position on the integrated timeline of primary content and interstitial breaks.

Requirements and intended audience

HLS.js is a JavaScript library that implements an [HTTP Live Streaming] client. It relies on [HTML5 video] and [MediaSource Extensions] for playback, and on [Managed Media Source] where MSE is not available (Safari on iOS 17.1+).

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-24. Source: https://github.com/video-dev/hls.js/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2026-11-04. Saved release: v1.7.3 · 2026-09-11. These dates do not guarantee ongoing maintenance.

Technologies
TypeScript
Licence
No licence detected. No recognised licence was detected in the saved metadata. A public repository does not automatically grant permission to reuse its code. Review the repository terms before reusing its code.
Demo check
A public page loaded on 2026-11-06. This does not test every feature.

Browse related categories