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.
- package/dist/stormcloud-vp.min.js +1 -1
- package/lib/StormcloudPlayer.cjs +5 -3
- package/lib/StormcloudPlayer.cjs.map +1 -1
- package/lib/index.cjs +8 -4
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +8 -4
- package/lib/index.js.map +1 -1
- package/lib/player/AdBreakOrchestrator.cjs +5 -3
- package/lib/player/AdBreakOrchestrator.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +5 -3
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +5 -3
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +5 -3
- package/lib/players/index.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +8 -4
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -10126,7 +10126,7 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
|
|
|
10126
10126
|
key: "runEdgePod",
|
|
10127
10127
|
value: function runEdgePod(requestUrl, trigger) {
|
|
10128
10128
|
return _async_to_generator(function() {
|
|
10129
|
-
var _params_get, _params_get1, epoch, generation, adPlayer, requestToken, params, _ref, _adPlayer_getPodAdCount, _adPlayer_getPodTotalDurationMs, remainingMs, remainingAds, podCount, error, errorMessage, classification, diag;
|
|
10129
|
+
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;
|
|
10130
10130
|
return _ts_generator(this, function(_state) {
|
|
10131
10131
|
switch(_state.label){
|
|
10132
10132
|
case 0:
|
|
@@ -10181,7 +10181,8 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
|
|
|
10181
10181
|
}
|
|
10182
10182
|
remainingMs = this.timing.getRemainingAdMs();
|
|
10183
10183
|
remainingAds = Math.max(1, Math.min(EDGE_POD_MAX_ADS, this.adConfig.resolvePodParams().maxAds - this.timing.totalAdsInBreak));
|
|
10184
|
-
|
|
10184
|
+
overrunAllowanceMs = Math.max(0, (_this_host_config_maxAdBreakExtensionMs = this.host.config.maxAdBreakExtensionMs) !== null && _this_host_config_maxAdBreakExtensionMs !== void 0 ? _this_host_config_maxAdBreakExtensionMs : 0);
|
|
10185
|
+
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;
|
|
10185
10186
|
if (classifyEdgeVastResponse({
|
|
10186
10187
|
podAdCount: podCount
|
|
10187
10188
|
}) !== "fill") {
|
|
@@ -10191,7 +10192,8 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
|
|
|
10191
10192
|
this.logOrchestratorFunnel("edge_fill", {
|
|
10192
10193
|
podAdCount: podCount,
|
|
10193
10194
|
podDurationMs: (_adPlayer_getPodTotalDurationMs = adPlayer.getPodTotalDurationMs) === null || _adPlayer_getPodTotalDurationMs === void 0 ? void 0 : _adPlayer_getPodTotalDurationMs.call(adPlayer),
|
|
10194
|
-
remainingMs: remainingMs
|
|
10195
|
+
remainingMs: remainingMs,
|
|
10196
|
+
overrunAllowanceMs: overrunAllowanceMs
|
|
10195
10197
|
});
|
|
10196
10198
|
sendAdLoadedTracking(this.host.config.licenseKey, {
|
|
10197
10199
|
source: "hls",
|