3.1.5 • Published 4 months ago

dasha v3.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

dasha

npm version npm downloads/month npm downloads

Library for parsing MPEG-DASH (.mpd) and HLS (.m3u8) manifests. Made with the purpose of obtaining a simplified representation convenient for further downloading of segments.

Install

npm i dasha

Quick start

import fs from 'node:fs/promises';
import { parse } from 'dasha';

const url =
  'https://dash.akamaized.net/dash264/TestCases/1a/sony/SNE_DASH_SD_CASE1A_REVISED.mpd';
const body = await fetch(url).then((res) => res.text());
const manifest = await parse(body, url);

for (const track of manifest.tracks.all) {
  for (const segment of track.segments) {
    const content = await fetch(url).then((res) => res.arrayBuffer());
    await fs.appendFile(`${track.id}.mp4`, content);
  }
}
3.1.5

4 months ago

3.1.4

7 months ago

3.1.3

7 months ago

3.1.2

7 months ago

3.1.1

7 months ago

3.1.0

8 months ago

3.0.4

10 months ago

3.0.5

9 months ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

2.3.4

2 years ago

2.3.3

2 years ago

2.3.6

2 years ago

2.3.5

2 years ago

2.3.0

3 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.2.6

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.2.3

3 years ago

2.2.2

3 years ago

2.2.5

3 years ago

2.2.4

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago