stormcloud-video-player 0.8.27 → 0.8.28

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/lib/index.js CHANGED
@@ -4839,6 +4839,7 @@ var AdConfigManager = /*#__PURE__*/ function() {
4839
4839
  this.vmapBreaks = [];
4840
4840
  this.consumedVmapBreakIds = /* @__PURE__ */ new Set();
4841
4841
  this.streamCorrelator = generateCorrelator();
4842
+ this.viewCorrelator = generateCorrelator();
4842
4843
  this.consentSignals = {};
4843
4844
  this.podCounter = 0;
4844
4845
  this.podAssignedByPrefetch = false;
@@ -5274,7 +5275,7 @@ var AdConfigManager = /*#__PURE__*/ function() {
5274
5275
  var adWillPlayMuted = inAdBreak ? adPlayer.getOriginalMutedState() : this.video.muted;
5275
5276
  var envSignals = resolveVastEnvironmentSignals(!!this.config.ctvAdRequest);
5276
5277
  var urlWithMacros = applyVastMacros(baseUrl, {
5277
- correlator: generateCorrelator(),
5278
+ correlator: this.viewCorrelator,
5278
5279
  streamCorrelator: this.streamCorrelator,
5279
5280
  pod: this.podCounter > 0 ? this.podCounter : void 0,
5280
5281
  adPosition: this.adRequestPositionInBreak,
@@ -5320,7 +5321,7 @@ var AdConfigManager = /*#__PURE__*/ function() {
5320
5321
  var adWillPlayMuted = inAdBreak ? adPlayer.getOriginalMutedState() : this.video.muted;
5321
5322
  var envSignals = resolveVastEnvironmentSignals(!!this.config.ctvAdRequest);
5322
5323
  var urlWithMacros = applyVastMacros(baseUrl, {
5323
- correlator: generateCorrelator(),
5324
+ correlator: this.viewCorrelator,
5324
5325
  streamCorrelator: this.streamCorrelator,
5325
5326
  pod: this.podCounter > 0 ? this.podCounter : void 0,
5326
5327
  podMaxAds: podParams.maxAds,
@@ -7176,7 +7177,7 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
7176
7177
  // IMA event listeners
7177
7178
  // ───────────────────────────────────────────────────────────────
7178
7179
  function get() {
7179
- return !!this.host.config.optimizedPods;
7180
+ return this.host.config.optimizedPods !== false;
7180
7181
  }
7181
7182
  },
7182
7183
  {
@@ -9317,7 +9318,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
9317
9318
  }
9318
9319
  this.adConfig.beginNewAdPod();
9319
9320
  this.adConfig.podAssignedByPrefetch = true;
9320
- var optimizedPods = !!this.config.optimizedPods;
9321
+ var optimizedPods = this.config.optimizedPods !== false;
9321
9322
  var breakDurationMs = marker.durationSeconds != null ? marker.durationSeconds * 1e3 : void 0;
9322
9323
  var generatedUrls = optimizedPods ? [
9323
9324
  this.generatePodVastUrl(baseVastUrl, breakDurationMs)