@svta/cml-cmaf-ham 0.24.6 → 0.24.8
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 +7 -0
- package/dist/index.d.ts +906 -908
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -96
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -11,5 +11,12 @@ npm i @svta/cml-cmaf-ham
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
+
import { dashToHam, hamToHls } from "@svta/cml-cmaf-ham";
|
|
15
|
+
import type { ManifestFile } from "@svta/cml-cmaf-ham";
|
|
14
16
|
|
|
17
|
+
// Convert a DASH MPD to HLS playlists through the HAM model.
|
|
18
|
+
function dashToHls(mpd: string): ManifestFile {
|
|
19
|
+
const presentations = dashToHam(mpd);
|
|
20
|
+
return hamToHls(presentations);
|
|
21
|
+
}
|
|
15
22
|
```
|