dasha 2.2.2 → 2.2.3

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.
Files changed (2) hide show
  1. package/lib/manifest.js +3 -3
  2. package/package.json +1 -1
package/lib/manifest.js CHANGED
@@ -21,7 +21,7 @@ class Manifest {
21
21
  getVideoTrack(height) {
22
22
  const isVideoAdaptationSet = (adaptationSet) =>
23
23
  adaptationSet.contentType === CONTENT_TYPE.video ||
24
- adaptationSet.mimeType === 'video/mp4' ||
24
+ adaptationSet.mimeType?.includes('video') ||
25
25
  adaptationSet.maxWidth ||
26
26
  adaptationSet.maxHeight;
27
27
  const adaptationSets = this.periods
@@ -51,7 +51,7 @@ class Manifest {
51
51
  getAudioTracks(languages) {
52
52
  const isAudioAdaptationSet = (adaptationSet) =>
53
53
  (adaptationSet.contentType === CONTENT_TYPE.audio ||
54
- adaptationSet.mimeType === 'audio/mp4') &&
54
+ adaptationSet.mimeType?.includes('audio')) &&
55
55
  !adaptationSet.maxWidth;
56
56
  const adaptationSets = this.periods
57
57
  .map((p) => p.adaptationSets)
@@ -86,7 +86,7 @@ class Manifest {
86
86
  getSubtitleTracks(languages) {
87
87
  const isSubtitleAdaptationSet = (adaptationSet) =>
88
88
  (adaptationSet.contentType === CONTENT_TYPE.text ||
89
- adaptationSet.mimeType.includes('text')) &&
89
+ adaptationSet.mimeType?.includes('text')) &&
90
90
  !adaptationSet.maxWidth;
91
91
  const adaptationSets = this.periods
92
92
  .map((p) => p.adaptationSets)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dasha",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "author": "Vitaliy Gashkov <vitnore@gmail.com>",
5
5
  "description": "Simple MPEG-DASH MPD parser",
6
6
  "license": "Apache-2.0",