# dashjs

> A reference client implementation for the playback of MPEG DASH via Javascript and compliant browsers.

Latest version **5.2.1** (published 2026-08-17) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install dashjs
pnpm add dashjs
yarn add dashjs
bun add dashjs
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; large bundle.

## Facts

| | |
|---|---|
| Version | 5.2.1 |
| Published | 2026-08-17 |
| First published | 2014-09-03 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=20 |
| Dependencies | 14 |
| Unpacked size | 124.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5547 |
| Author | Dash Industry Forum |
| Maintainers | dsparacio, dash.js, jeoliva, dsilhavy |
| Keywords | DASH, DASH-IF, MSE, EME, Smooth Streaming |

## Links

- npm: https://www.npmjs.com/package/dashjs
- Repository: https://github.com/Dash-Industry-Forum/dash.js
- Homepage: https://github.com/Dash-Industry-Forum/dash.js#readme
- Issues: https://github.com/Dash-Industry-Forum/dash.js/issues
- npm.io page: https://npm.io/package/dashjs

## Dependencies (14)

- [imsc](https://npm.io/package/imsc.md) ^1.1.5
- [localforage](https://npm.io/package/localforage.md) ^1.10.0
- [bcp-47-match](https://npm.io/package/bcp-47-match.md) ^2.0.3
- [@svta/cml-608](https://npm.io/package/@svta/cml-608.md) 1.0.2
- [@svta/cml-id3](https://npm.io/package/@svta/cml-id3.md) 1.0.6
- [@svta/cml-xml](https://npm.io/package/@svta/cml-xml.md) 1.1.4
- [html-entities](https://npm.io/package/html-entities.md) ^2.6.0
- [@svta/cml-cmcd](https://npm.io/package/@svta/cml-cmcd.md) 2.3.2
- [@svta/cml-cmsd](https://npm.io/package/@svta/cml-cmsd.md) 1.0.6
- [@svta/cml-dash](https://npm.io/package/@svta/cml-dash.md) 1.0.6
- [codem-isoboxer](https://npm.io/package/codem-isoboxer.md) 0.3.10
- [fast-deep-equal](https://npm.io/package/fast-deep-equal.md) 3.1.3
- [path-browserify](https://npm.io/package/path-browserify.md) ^1.0.1
- [@svta/cml-request](https://npm.io/package/@svta/cml-request.md) 1.0.12

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 5.2.1 (latest) — 2026-08-17
- 5.2.1-rc.1 (next) — 2026-08-13
- 5.2.1-rc.0 — 2026-08-06
- 5.2.0 — 2026-05-28
- 5.1.1 — 2025-12-23
- 5.1.0 — 2025-11-21
- 5.0.3 — 2025-05-28
- 5.0.2 — 2025-05-14
- 5.0.1 — 2025-04-16
- 5.0.0 — 2025-02-14
- 4.7.4 — 2024-02-20
- 4.7.3 — 2023-12-08
- 4.7.2 — 2023-09-28
- 4.7.1 — 2023-06-21
- 4.7.0 — 2023-05-05
- … 49 more at https://npm.io/package/dashjs/versions

## README

<img src="https://cloud.githubusercontent.com/assets/2762250/7824984/985c3e76-03bc-11e5-807b-1402bde4fe56.png" width="400">

## Overview

dash.js is a JavaScript based implementation for the playback of MPEG DASH content in browser based
environments that support the [Media Source Extensions](https://w3c.github.io/media-source/) and
the [Encrypted Media Extensions](https://www.w3.org/TR/encrypted-media/).

## Documentation

To get started, check out our [documentation](https://dashif.org/dash.js/) that includes
a [quickstart guide](https://dashif.org/dash.js/pages/quickstart/index.html) , [usage instructions](https://dashif.org/dash.js/pages/usage/index.html)
and [contribution guidelines](https://dashif.org/dash.js/pages/developers/how-to-contribute.html).

## Hosted Examples

* [Reference Player](https://reference.dashif.org/dash.js/latest/samples/dash-if-reference-player/index.html)
* [Samples](https://reference.dashif.org/dash.js/latest/samples/index.html)

## Quickstart

A very basic example on how to use dash.js in your application can be found below:

```html
<!doctype html>
<html>
<head>
    <title>dash.js Rocks</title>
    <style>
        video {
            width: 640px;
            height: 360px;
        }
    </style>
</head>
<body>
<div>
    <video id="videoPlayer" controls></video>
</div>
<script src="https://cdn.dashjs.org/latest/modern/umd/dash.all.min.js"></script>
<script>
    (function () {
        var url = "https://dash.akamaized.net/envivio/EnvivioDash3/manifest.mpd";
        var player = dashjs.MediaPlayer().create();
        player.initialize(document.querySelector("#videoPlayer"), url, true);
    })();
</script>
</body>
</html>
```

## Contact

Please raise any issue directly on [Github](https://github.com/Dash-Industry-Forum/dash.js/issues).

You can also find us on [Slack!](https://join.slack.com/t/dashif/shared_invite/zt-egme869x-JH~UPUuLoKJB26fw7wj3Gg) and
on [Google Groups](https://groups.google.com/g/dashjs).

## License

dash.js is released under [BSD license](https://github.com/Dash-Industry-Forum/dash.js/blob/development/LICENSE.md)

## Tested With

[<img src="https://cloud.githubusercontent.com/assets/7864462/12837037/452a17c6-cb73-11e5-9f39-fc96893bc9bf.png" alt="Browser Stack Logo" width="300">](https://www.browserstack.com/)
&nbsp;&nbsp;
[<img src="https://www.lambdatest.com/support/img/logo.svg" alt="Lambdatest Logo" width="300">](https://www.lambdatest.com/)

---
_Source: https://npm.io/package/dashjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
