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.
@@ -8,6 +8,7 @@ declare class AdConfigManager {
8
8
  apiVastTagUrl: string | undefined;
9
9
  apiNumberAds: number | undefined;
10
10
  readonly streamCorrelator: string;
11
+ readonly viewCorrelator: string;
11
12
  consentSignals: VastConsentSignals;
12
13
  podCounter: number;
13
14
  podAssignedByPrefetch: boolean;
@@ -4766,6 +4766,7 @@ var AdConfigManager = /*#__PURE__*/ function() {
4766
4766
  this.vmapBreaks = [];
4767
4767
  this.consumedVmapBreakIds = /* @__PURE__ */ new Set();
4768
4768
  this.streamCorrelator = generateCorrelator();
4769
+ this.viewCorrelator = generateCorrelator();
4769
4770
  this.consentSignals = {};
4770
4771
  this.podCounter = 0;
4771
4772
  this.podAssignedByPrefetch = false;
@@ -5201,7 +5202,7 @@ var AdConfigManager = /*#__PURE__*/ function() {
5201
5202
  var adWillPlayMuted = inAdBreak ? adPlayer.getOriginalMutedState() : this.video.muted;
5202
5203
  var envSignals = resolveVastEnvironmentSignals(!!this.config.ctvAdRequest);
5203
5204
  var urlWithMacros = applyVastMacros(baseUrl, {
5204
- correlator: generateCorrelator(),
5205
+ correlator: this.viewCorrelator,
5205
5206
  streamCorrelator: this.streamCorrelator,
5206
5207
  pod: this.podCounter > 0 ? this.podCounter : void 0,
5207
5208
  adPosition: this.adRequestPositionInBreak,
@@ -5247,7 +5248,7 @@ var AdConfigManager = /*#__PURE__*/ function() {
5247
5248
  var adWillPlayMuted = inAdBreak ? adPlayer.getOriginalMutedState() : this.video.muted;
5248
5249
  var envSignals = resolveVastEnvironmentSignals(!!this.config.ctvAdRequest);
5249
5250
  var urlWithMacros = applyVastMacros(baseUrl, {
5250
- correlator: generateCorrelator(),
5251
+ correlator: this.viewCorrelator,
5251
5252
  streamCorrelator: this.streamCorrelator,
5252
5253
  pod: this.podCounter > 0 ? this.podCounter : void 0,
5253
5254
  podMaxAds: podParams.maxAds,
@@ -7098,7 +7099,7 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
7098
7099
  // IMA event listeners
7099
7100
  // ───────────────────────────────────────────────────────────────
7100
7101
  function get() {
7101
- return !!this.host.config.optimizedPods;
7102
+ return this.host.config.optimizedPods !== false;
7102
7103
  }
7103
7104
  },
7104
7105
  {
@@ -9238,7 +9239,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
9238
9239
  }
9239
9240
  this.adConfig.beginNewAdPod();
9240
9241
  this.adConfig.podAssignedByPrefetch = true;
9241
- var optimizedPods = !!this.config.optimizedPods;
9242
+ var optimizedPods = this.config.optimizedPods !== false;
9242
9243
  var breakDurationMs = marker.durationSeconds != null ? marker.durationSeconds * 1e3 : void 0;
9243
9244
  var generatedUrls = optimizedPods ? [
9244
9245
  this.generatePodVastUrl(baseVastUrl, breakDurationMs)