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.
@@ -512,7 +512,7 @@ function enableLogs(debugConfig, context, id) {
512
512
  // Some browsers don't allow to use bind on console object anyway
513
513
  // fallback to default if needed
514
514
  try {
515
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.8-0.canary.10164"}`);
515
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.8-0.canary.10165"}`);
516
516
  } catch (e) {
517
517
  /* log fn threw an exception. All logger methods are no-ops. */
518
518
  return createLogger();
@@ -2419,7 +2419,7 @@ function pickMostCompleteCodecName(parsedCodec, levelCodec) {
2419
2419
  if (parsedCodec && parsedCodec !== 'mp4a') {
2420
2420
  return parsedCodec;
2421
2421
  }
2422
- return levelCodec;
2422
+ return levelCodec ? levelCodec.split(',')[0] : levelCodec;
2423
2423
  }
2424
2424
  function convertAVC1ToAVCOTI(codec) {
2425
2425
  // Convert avc1 codec string from RFC-4281 to RFC-6381 for MediaSource.isTypeSupported
@@ -8017,12 +8017,13 @@ class BufferController extends Logger {
8017
8017
  }
8018
8018
  for (const trackName in tracks) {
8019
8019
  if (!sourceBuffer[trackName]) {
8020
+ var _track$levelCodec;
8020
8021
  const track = tracks[trackName];
8021
8022
  if (!track) {
8022
8023
  throw Error(`source buffer exists for track ${trackName}, however track does not`);
8023
8024
  }
8024
- // use levelCodec as first priority
8025
- let codec = track.levelCodec || track.codec;
8025
+ // use levelCodec as first priority unless it contains multiple comma-separated codec values
8026
+ let codec = ((_track$levelCodec = track.levelCodec) == null ? void 0 : _track$levelCodec.indexOf(',')) === -1 ? track.levelCodec : track.codec;
8026
8027
  if (codec) {
8027
8028
  if (trackName.slice(0, 5) === 'audio') {
8028
8029
  codec = getCodecCompatibleName(codec, this.appendSource);
@@ -20362,7 +20363,7 @@ class Hls {
20362
20363
  * Get the video-dev/hls.js package version.
20363
20364
  */
20364
20365
  static get version() {
20365
- return "1.5.8-0.canary.10164";
20366
+ return "1.5.8-0.canary.10165";
20366
20367
  }
20367
20368
 
20368
20369
  /**