stormcloud-video-player 0.8.72 → 0.8.73

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.
@@ -10209,7 +10209,7 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
10209
10209
  key: "runEdgePod",
10210
10210
  value: function runEdgePod(requestUrl, trigger) {
10211
10211
  return _async_to_generator(function() {
10212
- var _params_get, _params_get1, epoch, generation, adPlayer, requestToken, params, _ref, _adPlayer_getPodAdCount, _adPlayer_getPodTotalDurationMs, remainingMs, remainingAds, podCount, error, errorMessage, classification, diag;
10212
+ var _params_get, _params_get1, epoch, generation, adPlayer, requestToken, params, _this_host_config_maxAdBreakExtensionMs, _ref, _adPlayer_getPodAdCount, _adPlayer_getPodTotalDurationMs, remainingMs, remainingAds, overrunAllowanceMs, podCount, error, errorMessage, classification, diag;
10213
10213
  return _ts_generator(this, function(_state) {
10214
10214
  switch(_state.label){
10215
10215
  case 0:
@@ -10264,7 +10264,8 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
10264
10264
  }
10265
10265
  remainingMs = this.timing.getRemainingAdMs();
10266
10266
  remainingAds = Math.max(1, Math.min(EDGE_POD_MAX_ADS, this.adConfig.resolvePodParams().maxAds - this.timing.totalAdsInBreak));
10267
- podCount = adPlayer.limitPodToBudget ? adPlayer.limitPodToBudget(remainingMs, remainingAds) : (_ref = (_adPlayer_getPodAdCount = adPlayer.getPodAdCount) === null || _adPlayer_getPodAdCount === void 0 ? void 0 : _adPlayer_getPodAdCount.call(adPlayer)) !== null && _ref !== void 0 ? _ref : 0;
10267
+ overrunAllowanceMs = Math.max(0, (_this_host_config_maxAdBreakExtensionMs = this.host.config.maxAdBreakExtensionMs) !== null && _this_host_config_maxAdBreakExtensionMs !== void 0 ? _this_host_config_maxAdBreakExtensionMs : 0);
10268
+ podCount = adPlayer.limitPodToBudget ? adPlayer.limitPodToBudget(remainingMs + overrunAllowanceMs, remainingAds) : (_ref = (_adPlayer_getPodAdCount = adPlayer.getPodAdCount) === null || _adPlayer_getPodAdCount === void 0 ? void 0 : _adPlayer_getPodAdCount.call(adPlayer)) !== null && _ref !== void 0 ? _ref : 0;
10268
10269
  if (classifyEdgeVastResponse({
10269
10270
  podAdCount: podCount
10270
10271
  }) !== "fill") {
@@ -10274,7 +10275,8 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
10274
10275
  this.logOrchestratorFunnel("edge_fill", {
10275
10276
  podAdCount: podCount,
10276
10277
  podDurationMs: (_adPlayer_getPodTotalDurationMs = adPlayer.getPodTotalDurationMs) === null || _adPlayer_getPodTotalDurationMs === void 0 ? void 0 : _adPlayer_getPodTotalDurationMs.call(adPlayer),
10277
- remainingMs: remainingMs
10278
+ remainingMs: remainingMs,
10279
+ overrunAllowanceMs: overrunAllowanceMs
10278
10280
  });
10279
10281
  sendAdLoadedTracking(this.host.config.licenseKey, {
10280
10282
  source: "hls",