stormcloud-video-player 0.3.55 → 0.3.57

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.d.cts CHANGED
@@ -34,6 +34,7 @@ interface StormcloudVideoPlayerConfig {
34
34
  licenseKey?: string;
35
35
  adPlayerType?: 'ima' | 'hls';
36
36
  vastTagUrl?: string;
37
+ vmapUrl?: string;
37
38
  vastMode?: 'adstorm' | 'default';
38
39
  minSegmentsBeforePlay?: number;
39
40
  }
@@ -138,6 +139,8 @@ declare class StormcloudVideoPlayer {
138
139
  private adPodQueue;
139
140
  private apiVastTagUrl;
140
141
  private apiNumberAds;
142
+ private vmapBreaks;
143
+ private consumedVmapBreakIds;
141
144
  private lastHeartbeatTime;
142
145
  private heartbeatInterval;
143
146
  private currentAdIndex;
@@ -209,8 +212,14 @@ declare class StormcloudVideoPlayer {
209
212
  private initializeTracking;
210
213
  private sendHeartbeatIfNeeded;
211
214
  private fetchAdConfiguration;
215
+ private fetchAndParseVmap;
216
+ private parseVmapToBreaks;
217
+ private parseVmapTimeOffsetToMs;
218
+ private getAdBreakKey;
219
+ private resolveBreakStartMs;
212
220
  getCurrentAdIndex(): number;
213
221
  getTotalAdsInBreak(): number;
222
+ getAdRemainingMs(): number;
214
223
  private generateVastUrlsWithCorrelators;
215
224
  isAdPlaying(): boolean;
216
225
  isShowingAds(): boolean;
@@ -313,6 +322,7 @@ interface BaseStormcloudPlayerProps {
313
322
  showCustomControls?: boolean;
314
323
  hideLoadingIndicator?: boolean;
315
324
  licenseKey?: string;
325
+ vmapUrl?: string;
316
326
  adFailsafeTimeoutMs?: number;
317
327
  minSegmentsBeforePlay?: number;
318
328
  onReady?: (player: StormcloudVideoPlayer) => void;
package/lib/index.d.ts CHANGED
@@ -34,6 +34,7 @@ interface StormcloudVideoPlayerConfig {
34
34
  licenseKey?: string;
35
35
  adPlayerType?: 'ima' | 'hls';
36
36
  vastTagUrl?: string;
37
+ vmapUrl?: string;
37
38
  vastMode?: 'adstorm' | 'default';
38
39
  minSegmentsBeforePlay?: number;
39
40
  }
@@ -138,6 +139,8 @@ declare class StormcloudVideoPlayer {
138
139
  private adPodQueue;
139
140
  private apiVastTagUrl;
140
141
  private apiNumberAds;
142
+ private vmapBreaks;
143
+ private consumedVmapBreakIds;
141
144
  private lastHeartbeatTime;
142
145
  private heartbeatInterval;
143
146
  private currentAdIndex;
@@ -209,8 +212,14 @@ declare class StormcloudVideoPlayer {
209
212
  private initializeTracking;
210
213
  private sendHeartbeatIfNeeded;
211
214
  private fetchAdConfiguration;
215
+ private fetchAndParseVmap;
216
+ private parseVmapToBreaks;
217
+ private parseVmapTimeOffsetToMs;
218
+ private getAdBreakKey;
219
+ private resolveBreakStartMs;
212
220
  getCurrentAdIndex(): number;
213
221
  getTotalAdsInBreak(): number;
222
+ getAdRemainingMs(): number;
214
223
  private generateVastUrlsWithCorrelators;
215
224
  isAdPlaying(): boolean;
216
225
  isShowingAds(): boolean;
@@ -313,6 +322,7 @@ interface BaseStormcloudPlayerProps {
313
322
  showCustomControls?: boolean;
314
323
  hideLoadingIndicator?: boolean;
315
324
  licenseKey?: string;
325
+ vmapUrl?: string;
316
326
  adFailsafeTimeoutMs?: number;
317
327
  minSegmentsBeforePlay?: number;
318
328
  onReady?: (player: StormcloudVideoPlayer) => void;