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.
@@ -2181,7 +2181,7 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
2181
2181
  key: "runEdgePod",
2182
2182
  value: function runEdgePod(requestUrl, trigger) {
2183
2183
  return _async_to_generator(function() {
2184
- var _params_get, _params_get1, epoch, generation, adPlayer, requestToken, params, _ref, _adPlayer_getPodAdCount, _adPlayer_getPodTotalDurationMs, remainingMs, remainingAds, podCount, error, errorMessage, classification, diag;
2184
+ 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;
2185
2185
  return _ts_generator(this, function(_state) {
2186
2186
  switch(_state.label){
2187
2187
  case 0:
@@ -2236,7 +2236,8 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
2236
2236
  }
2237
2237
  remainingMs = this.timing.getRemainingAdMs();
2238
2238
  remainingAds = Math.max(1, Math.min(EDGE_POD_MAX_ADS, this.adConfig.resolvePodParams().maxAds - this.timing.totalAdsInBreak));
2239
- 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;
2239
+ overrunAllowanceMs = Math.max(0, (_this_host_config_maxAdBreakExtensionMs = this.host.config.maxAdBreakExtensionMs) !== null && _this_host_config_maxAdBreakExtensionMs !== void 0 ? _this_host_config_maxAdBreakExtensionMs : 0);
2240
+ 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;
2240
2241
  if (classifyEdgeVastResponse({
2241
2242
  podAdCount: podCount
2242
2243
  }) !== "fill") {
@@ -2246,7 +2247,8 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
2246
2247
  this.logOrchestratorFunnel("edge_fill", {
2247
2248
  podAdCount: podCount,
2248
2249
  podDurationMs: (_adPlayer_getPodTotalDurationMs = adPlayer.getPodTotalDurationMs) === null || _adPlayer_getPodTotalDurationMs === void 0 ? void 0 : _adPlayer_getPodTotalDurationMs.call(adPlayer),
2249
- remainingMs: remainingMs
2250
+ remainingMs: remainingMs,
2251
+ overrunAllowanceMs: overrunAllowanceMs
2250
2252
  });
2251
2253
  sendAdLoadedTracking(this.host.config.licenseKey, {
2252
2254
  source: "hls",