dasha 2.2.6 → 2.3.0
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/lib/manifest.js +5 -0
- package/package.json +5 -5
package/lib/manifest.js
CHANGED
|
@@ -18,6 +18,11 @@ class Manifest {
|
|
|
18
18
|
for (const key of Object.keys(manifest)) this[key] = manifest[key];
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
addBaseUrl(value) {
|
|
22
|
+
if (Array.isArray(this.baseUrls)) this.baseUrls.push({ value });
|
|
23
|
+
else this.baseUrls = [{ value }];
|
|
24
|
+
}
|
|
25
|
+
|
|
21
26
|
getVideoTrack(height) {
|
|
22
27
|
const isVideoAdaptationSet = (adaptationSet) =>
|
|
23
28
|
adaptationSet.contentType === CONTENT_TYPE.video ||
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dasha",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"author": "
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "2.3.0",
|
|
4
|
+
"author": "Vitaly Gashkov <vitalygashkov@outlook.com>",
|
|
5
|
+
"description": "MPD-manifest parser for MPEG DASH",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"mpeg",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
],
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/
|
|
22
|
+
"url": "git+https://github.com/vitalygashkov/dasha.git"
|
|
23
23
|
},
|
|
24
24
|
"funding": {
|
|
25
25
|
"type": "individual",
|
|
26
|
-
"url": "https://boosty.to/
|
|
26
|
+
"url": "https://boosty.to/vitalygashkov"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"test": "jest",
|