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