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/dist/hls.js CHANGED
@@ -637,7 +637,7 @@
637
637
  // Some browsers don't allow to use bind on console object anyway
638
638
  // fallback to default if needed
639
639
  try {
640
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10162");
640
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10165");
641
641
  } catch (e) {
642
642
  /* log fn threw an exception. All logger methods are no-ops. */
643
643
  return createLogger();
@@ -3057,7 +3057,7 @@
3057
3057
  if (parsedCodec && parsedCodec !== 'mp4a') {
3058
3058
  return parsedCodec;
3059
3059
  }
3060
- return levelCodec;
3060
+ return levelCodec ? levelCodec.split(',')[0] : levelCodec;
3061
3061
  }
3062
3062
  function convertAVC1ToAVCOTI(codec) {
3063
3063
  // Convert avc1 codec string from RFC-4281 to RFC-6381 for MediaSource.isTypeSupported
@@ -20276,12 +20276,13 @@
20276
20276
  }
20277
20277
  var _loop = function _loop(trackName) {
20278
20278
  if (!sourceBuffer[trackName]) {
20279
+ var _track$levelCodec;
20279
20280
  var track = tracks[trackName];
20280
20281
  if (!track) {
20281
20282
  throw Error("source buffer exists for track " + trackName + ", however track does not");
20282
20283
  }
20283
- // use levelCodec as first priority
20284
- var codec = track.levelCodec || track.codec;
20284
+ // use levelCodec as first priority unless it contains multiple comma-separated codec values
20285
+ var codec = ((_track$levelCodec = track.levelCodec) == null ? void 0 : _track$levelCodec.indexOf(',')) === -1 ? track.levelCodec : track.codec;
20285
20286
  if (codec) {
20286
20287
  if (trackName.slice(0, 5) === 'audio') {
20287
20288
  codec = getCodecCompatibleName(codec, _this16.appendSource);
@@ -30465,7 +30466,7 @@
30465
30466
  * Get the video-dev/hls.js package version.
30466
30467
  */
30467
30468
  function get() {
30468
- return "1.5.8-0.canary.10162";
30469
+ return "1.5.8-0.canary.10165";
30469
30470
  }
30470
30471
  }, {
30471
30472
  key: "Events",