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.
@@ -10176,7 +10176,7 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
10176
10176
  key: "runEdgePod",
10177
10177
  value: function runEdgePod(requestUrl, trigger) {
10178
10178
  return _async_to_generator(function() {
10179
- var _params_get, _params_get1, epoch, generation, adPlayer, requestToken, params, _ref, _adPlayer_getPodAdCount, _adPlayer_getPodTotalDurationMs, remainingMs, remainingAds, podCount, error, errorMessage, classification, diag;
10179
+ 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;
10180
10180
  return _ts_generator(this, function(_state) {
10181
10181
  switch(_state.label){
10182
10182
  case 0:
@@ -10231,7 +10231,8 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
10231
10231
  }
10232
10232
  remainingMs = this.timing.getRemainingAdMs();
10233
10233
  remainingAds = Math.max(1, Math.min(EDGE_POD_MAX_ADS, this.adConfig.resolvePodParams().maxAds - this.timing.totalAdsInBreak));
10234
- 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;
10234
+ overrunAllowanceMs = Math.max(0, (_this_host_config_maxAdBreakExtensionMs = this.host.config.maxAdBreakExtensionMs) !== null && _this_host_config_maxAdBreakExtensionMs !== void 0 ? _this_host_config_maxAdBreakExtensionMs : 0);
10235
+ 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;
10235
10236
  if (classifyEdgeVastResponse({
10236
10237
  podAdCount: podCount
10237
10238
  }) !== "fill") {
@@ -10241,7 +10242,8 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
10241
10242
  this.logOrchestratorFunnel("edge_fill", {
10242
10243
  podAdCount: podCount,
10243
10244
  podDurationMs: (_adPlayer_getPodTotalDurationMs = adPlayer.getPodTotalDurationMs) === null || _adPlayer_getPodTotalDurationMs === void 0 ? void 0 : _adPlayer_getPodTotalDurationMs.call(adPlayer),
10244
- remainingMs: remainingMs
10245
+ remainingMs: remainingMs,
10246
+ overrunAllowanceMs: overrunAllowanceMs
10245
10247
  });
10246
10248
  sendAdLoadedTracking(this.host.config.licenseKey, {
10247
10249
  source: "hls",