hls.js 1.5.8-0.canary.10162 → 1.5.8-0.canary.10165

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/package.json CHANGED
@@ -61,13 +61,13 @@
61
61
  "prepare": "husky"
62
62
  },
63
63
  "devDependencies": {
64
- "@babel/core": "7.24.3",
64
+ "@babel/core": "7.24.4",
65
65
  "@babel/helper-module-imports": "7.24.3",
66
66
  "@babel/plugin-proposal-class-properties": "7.18.6",
67
67
  "@babel/plugin-proposal-object-rest-spread": "7.20.7",
68
68
  "@babel/plugin-proposal-optional-chaining": "7.21.0",
69
69
  "@babel/plugin-transform-object-assign": "7.24.1",
70
- "@babel/preset-env": "7.24.3",
70
+ "@babel/preset-env": "7.24.4",
71
71
  "@babel/preset-typescript": "7.24.1",
72
72
  "@babel/register": "7.23.7",
73
73
  "@microsoft/api-documenter": "7.24.1",
@@ -130,5 +130,5 @@
130
130
  "url-toolkit": "2.2.5",
131
131
  "wrangler": "3.45.0"
132
132
  },
133
- "version": "1.5.8-0.canary.10162"
133
+ "version": "1.5.8-0.canary.10165"
134
134
  }
@@ -1060,8 +1060,11 @@ export default class BufferController extends Logger implements ComponentAPI {
1060
1060
  `source buffer exists for track ${trackName}, however track does not`,
1061
1061
  );
1062
1062
  }
1063
- // use levelCodec as first priority
1064
- let codec = track.levelCodec || track.codec;
1063
+ // use levelCodec as first priority unless it contains multiple comma-separated codec values
1064
+ let codec =
1065
+ track.levelCodec?.indexOf(',') === -1
1066
+ ? track.levelCodec
1067
+ : track.codec;
1065
1068
  if (codec) {
1066
1069
  if (trackName.slice(0, 5) === 'audio') {
1067
1070
  codec = getCodecCompatibleName(codec, this.appendSource);
@@ -201,7 +201,7 @@ export function pickMostCompleteCodecName(
201
201
  if (parsedCodec && parsedCodec !== 'mp4a') {
202
202
  return parsedCodec;
203
203
  }
204
- return levelCodec;
204
+ return levelCodec ? levelCodec.split(',')[0] : levelCodec;
205
205
  }
206
206
 
207
207
  export function convertAVC1ToAVCOTI(codec: string) {