hls.js 1.5.11-0.canary.10336 → 1.5.12-0.canary.10338

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
@@ -609,7 +609,7 @@
609
609
  // Some browsers don't allow to use bind on console object anyway
610
610
  // fallback to default if needed
611
611
  try {
612
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.11-0.canary.10336");
612
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.12-0.canary.10338");
613
613
  } catch (e) {
614
614
  /* log fn threw an exception. All logger methods are no-ops. */
615
615
  return createLogger();
@@ -6499,7 +6499,7 @@
6499
6499
  var _level$audioGroups, _level$subtitleGroups;
6500
6500
  var levelCandidate = levels[candidate];
6501
6501
  // Skip level switch if GAP tag is found in next level at same position
6502
- if (errorDetails === ErrorDetails.FRAG_GAP && data.frag) {
6502
+ if (errorDetails === ErrorDetails.FRAG_GAP && fragErrorType === PlaylistLevelType.MAIN && data.frag) {
6503
6503
  var levelDetails = levels[candidate].details;
6504
6504
  if (levelDetails) {
6505
6505
  var fragCandidate = findFragmentByPTS(data.frag, levelDetails.fragments, data.frag.start);
@@ -18610,6 +18610,9 @@
18610
18610
  _proto.onError = function onError(event, data) {
18611
18611
  var frag = data.frag;
18612
18612
  if ((frag == null ? void 0 : frag.type) === PlaylistLevelType.SUBTITLE) {
18613
+ if (data.details === ErrorDetails.FRAG_GAP) {
18614
+ this.fragmentTracker.fragBuffered(frag, true);
18615
+ }
18613
18616
  if (this.fragCurrent) {
18614
18617
  this.fragCurrent.abortRequests();
18615
18618
  }
@@ -30517,7 +30520,7 @@
30517
30520
  * Get the video-dev/hls.js package version.
30518
30521
  */
30519
30522
  function get() {
30520
- return "1.5.11-0.canary.10336";
30523
+ return "1.5.12-0.canary.10338";
30521
30524
  }
30522
30525
  }, {
30523
30526
  key: "Events",