stormcloud-video-player 0.8.3 → 0.8.5

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.
@@ -1,4 +1,4 @@
1
- import { S as StormcloudVideoPlayerConfig } from '../types-DWVgdqF-.cjs';
1
+ import { S as StormcloudVideoPlayerConfig } from '../types-CUKMIqHL.cjs';
2
2
 
3
3
  declare class StormcloudVideoPlayer {
4
4
  private readonly video;
@@ -42,6 +42,7 @@ declare class StormcloudVideoPlayer {
42
42
  private maxPlaceholderDurationMs;
43
43
  private isShowingPlaceholder;
44
44
  private timeUpdateHandler?;
45
+ private endedHandler?;
45
46
  private emptiedHandler?;
46
47
  private readonly tsScte35Pids;
47
48
  private readonly pmtPids;
@@ -77,6 +78,11 @@ declare class StormcloudVideoPlayer {
77
78
  private adDetectSentForCurrentBreak;
78
79
  private palNonce;
79
80
  private palPlaybackStarted;
81
+ private readonly streamCorrelator;
82
+ private consentSignals;
83
+ private podCounter;
84
+ private podAssignedByPrefetch;
85
+ private adRequestPositionInBreak;
80
86
  constructor(config: StormcloudVideoPlayerConfig);
81
87
  private createAdPlayer;
82
88
  load(): Promise<void>;
@@ -130,6 +136,7 @@ declare class StormcloudVideoPlayer {
130
136
  private markerTypeFromSegmentationTypeId;
131
137
  private initializeTracking;
132
138
  private sendHeartbeatIfNeeded;
139
+ private isVmapEnabled;
133
140
  private fetchAdConfiguration;
134
141
  private fetchAndParseVmap;
135
142
  private parseVmapToBreaks;
@@ -139,6 +146,7 @@ declare class StormcloudVideoPlayer {
139
146
  getCurrentAdIndex(): number;
140
147
  getTotalAdsInBreak(): number;
141
148
  getAdRemainingMs(): number;
149
+ private beginNewAdPod;
142
150
  private generateVastUrlsWithCorrelators;
143
151
  isAdPlaying(): boolean;
144
152
  isShowingAds(): boolean;
@@ -162,7 +170,8 @@ declare class StormcloudVideoPlayer {
162
170
  private showPlaceholderAndWaitForAds;
163
171
  private findCurrentOrNextBreak;
164
172
  private onTimeUpdate;
165
- private handleMidAdJoin;
173
+ private onVideoEnded;
174
+ private handleVmapAdBreak;
166
175
  private scheduleAdStopCountdown;
167
176
  private clearAdStopTimer;
168
177
  private ensureAdStoppedByTimer;