hls.js 1.6.0-beta.2.0.canary.10928 → 1.6.0-beta.2.0.canary.10931

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.mjs CHANGED
@@ -330,7 +330,7 @@ function _toPrimitive(t, r) {
330
330
  if ("object" != typeof t || !t) return t;
331
331
  var e = t[Symbol.toPrimitive];
332
332
  if (undefined !== e) {
333
- var i = e.call(t, r || "default");
333
+ var i = e.call(t, r);
334
334
  if ("object" != typeof i) return i;
335
335
  throw new TypeError("@@toPrimitive must return a primitive value.");
336
336
  }
@@ -402,7 +402,7 @@ function enableLogs(debugConfig, context, id) {
402
402
  // Some browsers don't allow to use bind on console object anyway
403
403
  // fallback to default if needed
404
404
  try {
405
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.2.0.canary.10928"}`);
405
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.2.0.canary.10931"}`);
406
406
  } catch (e) {
407
407
  /* log fn threw an exception. All logger methods are no-ops. */
408
408
  return createLogger();
@@ -2232,18 +2232,14 @@ function retryForHttpStatus(httpStatus) {
2232
2232
 
2233
2233
  var NetworkErrorAction = {
2234
2234
  DoNothing: 0,
2235
- SendEndCallback: 1,
2236
2235
  SendAlternateToPenaltyBox: 2,
2237
2236
  RemoveAlternatePermanently: 3,
2238
- InsertDiscontinuity: 4,
2239
2237
  RetryRequest: 5
2240
2238
  };
2241
2239
  var ErrorActionFlags = {
2242
2240
  None: 0,
2243
2241
  MoveAllAlternatesMatchingHost: 1,
2244
- MoveAllAlternatesMatchingHDCP: 2,
2245
- SwitchToSDR: 4
2246
- };
2242
+ MoveAllAlternatesMatchingHDCP: 2};
2247
2243
  class ErrorController extends Logger {
2248
2244
  constructor(hls) {
2249
2245
  super('error-controller', hls.logger);
@@ -6560,7 +6556,6 @@ function keySystemFormatToKeySystemDomain(format) {
6560
6556
  var KeySystemIds = {
6561
6557
  CENC: "1077efecc0b24d02ace33c1e52e2fb4b",
6562
6558
  CLEARKEY: "e2719d58a985b3c9781ab030af78d30e",
6563
- FAIRPLAY: "94ce86fb07ff4f43adb893d2fa968ca2",
6564
6559
  PLAYREADY: "9a04f07998404286ab92e65be0885f95",
6565
6560
  WIDEVINE: "edef8ba979d64acea3c827dcd51d21ed"
6566
6561
  };
@@ -9860,7 +9855,7 @@ var eventemitter3 = {exports: {}};
9860
9855
  var eventemitter3Exports = eventemitter3.exports;
9861
9856
  var EventEmitter = /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);
9862
9857
 
9863
- const version = "1.6.0-beta.2.0.canary.10928";
9858
+ const version = "1.6.0-beta.2.0.canary.10931";
9864
9859
 
9865
9860
  // ensure the worker ends up in the bundle
9866
9861
  // If the worker should not be included this gets aliased to empty.js
@@ -18720,8 +18715,6 @@ transfer tracks: ${JSON.stringify(transferredTracks, (key, value) => key === 'in
18720
18715
  }
18721
18716
  const playlistEnd = details.edge;
18722
18717
  if (details.live && this.hls.config.liveDurationInfinity) {
18723
- // Override duration to Infinity
18724
- mediaSource.duration = Infinity;
18725
18718
  const len = details.fragments.length;
18726
18719
  if (len && details.live && !!mediaSource.setLiveSeekableRange) {
18727
18720
  const start = Math.max(0, details.fragmentStart);
@@ -18738,6 +18731,9 @@ transfer tracks: ${JSON.stringify(transferredTracks, (key, value) => key === 'in
18738
18731
  }
18739
18732
  const overrideDuration = (_this$overrides2 = this.overrides) == null ? undefined : _this$overrides2.duration;
18740
18733
  if (overrideDuration) {
18734
+ if (!isFiniteNumber(overrideDuration)) {
18735
+ return null;
18736
+ }
18741
18737
  return {
18742
18738
  duration: overrideDuration
18743
18739
  };
@@ -19394,23 +19390,10 @@ const CmObjectType = {
19394
19390
  * init segment
19395
19391
  */
19396
19392
  INIT: 'i',
19397
- /**
19398
- * caption or subtitle
19399
- */
19400
- CAPTION: 'c',
19401
19393
  /**
19402
19394
  * ISOBMFF timed text track
19403
19395
  */
19404
- TIMED_TEXT: 'tt',
19405
- /**
19406
- * cryptographic key, license or certificate.
19407
- */
19408
- KEY: 'k',
19409
- /**
19410
- * other
19411
- */
19412
- OTHER: 'o'
19413
- };
19396
+ TIMED_TEXT: 'tt'};
19414
19397
 
19415
19398
  /**
19416
19399
  * Common Media Client Data Object Type
@@ -19429,23 +19412,10 @@ const CmcdObjectType = CmObjectType;
19429
19412
  * @internal
19430
19413
  */
19431
19414
  const CmStreamingFormat = {
19432
- /**
19433
- * MPEG DASH
19434
- */
19435
- DASH: 'd',
19436
19415
  /**
19437
19416
  * HTTP Live Streaming (HLS)
19438
19417
  */
19439
- HLS: 'h',
19440
- /**
19441
- * Smooth Streaming
19442
- */
19443
- SMOOTH: 's',
19444
- /**
19445
- * Other
19446
- */
19447
- OTHER: 'o'
19448
- };
19418
+ HLS: 'h'};
19449
19419
 
19450
19420
  /**
19451
19421
  * Common Media Client Data Streaming Format
@@ -28252,9 +28222,7 @@ class TimelineController {
28252
28222
  if (canReuseVttTextTrack(textTrack, {
28253
28223
  name: label,
28254
28224
  lang: language,
28255
- characteristics: 'transcribes-spoken-dialog,describes-music-and-sound',
28256
- attrs: {}
28257
- })) {
28225
+ characteristics: 'transcribes-spoken-dialog,describes-music-and-sound'})) {
28258
28226
  return textTrack;
28259
28227
  }
28260
28228
  }