hls.js 1.5.8-0.canary.10164 → 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/dist/hls.light.js CHANGED
@@ -606,7 +606,7 @@
606
606
  // Some browsers don't allow to use bind on console object anyway
607
607
  // fallback to default if needed
608
608
  try {
609
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10164");
609
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10165");
610
610
  } catch (e) {
611
611
  /* log fn threw an exception. All logger methods are no-ops. */
612
612
  return createLogger();
@@ -2607,7 +2607,7 @@
2607
2607
  if (parsedCodec && parsedCodec !== 'mp4a') {
2608
2608
  return parsedCodec;
2609
2609
  }
2610
- return levelCodec;
2610
+ return levelCodec ? levelCodec.split(',')[0] : levelCodec;
2611
2611
  }
2612
2612
  function convertAVC1ToAVCOTI(codec) {
2613
2613
  // Convert avc1 codec string from RFC-4281 to RFC-6381 for MediaSource.isTypeSupported
@@ -8274,12 +8274,13 @@
8274
8274
  }
8275
8275
  var _loop = function _loop(trackName) {
8276
8276
  if (!sourceBuffer[trackName]) {
8277
+ var _track$levelCodec;
8277
8278
  var track = tracks[trackName];
8278
8279
  if (!track) {
8279
8280
  throw Error("source buffer exists for track " + trackName + ", however track does not");
8280
8281
  }
8281
- // use levelCodec as first priority
8282
- var codec = track.levelCodec || track.codec;
8282
+ // use levelCodec as first priority unless it contains multiple comma-separated codec values
8283
+ var codec = ((_track$levelCodec = track.levelCodec) == null ? void 0 : _track$levelCodec.indexOf(',')) === -1 ? track.levelCodec : track.codec;
8283
8284
  if (codec) {
8284
8285
  if (trackName.slice(0, 5) === 'audio') {
8285
8286
  codec = getCodecCompatibleName(codec, _this16.appendSource);
@@ -21691,7 +21692,7 @@
21691
21692
  * Get the video-dev/hls.js package version.
21692
21693
  */
21693
21694
  function get() {
21694
- return "1.5.8-0.canary.10164";
21695
+ return "1.5.8-0.canary.10165";
21695
21696
  }
21696
21697
  }, {
21697
21698
  key: "Events",