dasha 3.1.4 → 4.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -3
- package/dist/dasha.cjs +1048 -0
- package/dist/dasha.d.cts +160 -0
- package/dist/dasha.d.ts +160 -0
- package/dist/dasha.js +1019 -0
- package/package.json +37 -21
- package/dasha.js +0 -29
- package/lib/audio.js +0 -148
- package/lib/dash.js +0 -494
- package/lib/hls.js +0 -234
- package/lib/subtitle.js +0 -137
- package/lib/track.js +0 -127
- package/lib/util.js +0 -98
- package/lib/video.js +0 -200
- package/lib/xml.js +0 -310
- package/types/dasha.d.ts +0 -161
package/README.md
CHANGED
|
@@ -12,14 +12,13 @@ Library for parsing MPEG-DASH (.mpd) and HLS (.m3u8) manifests. Made with the pu
|
|
|
12
12
|
npm i dasha
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Usage
|
|
16
16
|
|
|
17
17
|
```js
|
|
18
18
|
import fs from 'node:fs/promises';
|
|
19
19
|
import { parse } from 'dasha';
|
|
20
20
|
|
|
21
|
-
const url =
|
|
22
|
-
'https://dash.akamaized.net/dash264/TestCases/1a/sony/SNE_DASH_SD_CASE1A_REVISED.mpd';
|
|
21
|
+
const url = 'https://dash.akamaized.net/dash264/TestCases/1a/sony/SNE_DASH_SD_CASE1A_REVISED.mpd';
|
|
23
22
|
const body = await fetch(url).then((res) => res.text());
|
|
24
23
|
const manifest = await parse(body, url);
|
|
25
24
|
|
|
@@ -30,3 +29,11 @@ for (const track of manifest.tracks.all) {
|
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
```
|
|
32
|
+
|
|
33
|
+
## Credits
|
|
34
|
+
|
|
35
|
+
This project is heavily influenced by the robust implementation found in [N_m3u8DL-RE](https://github.com/nilaoda/N_m3u8DL-RE). Special thanks to the open-source community and contributors who make projects like this possible.
|
|
36
|
+
|
|
37
|
+
## Licenses
|
|
38
|
+
|
|
39
|
+
This project is licensed under the [MIT License](LICENSE).
|