stormcloud-video-player 0.3.61 → 0.3.63

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
@@ -20,6 +20,7 @@ interface StormcloudVideoPlayerConfig {
20
20
  muted?: boolean;
21
21
  allowNativeHls?: boolean;
22
22
  lowLatencyMode?: boolean;
23
+ isLiveStream?: boolean;
23
24
  driftToleranceMs?: number;
24
25
  immediateManifestAds?: boolean;
25
26
  debugAdTiming?: boolean;
@@ -34,6 +35,7 @@ interface StormcloudVideoPlayerConfig {
34
35
  licenseKey?: string;
35
36
  adPlayerType?: 'ima' | 'hls';
36
37
  vastTagUrl?: string;
38
+ isVmap?: boolean;
37
39
  vmapUrl?: string;
38
40
  vastMode?: 'adstorm' | 'default';
39
41
  minSegmentsBeforePlay?: number;
@@ -176,6 +178,7 @@ declare class StormcloudVideoPlayer {
176
178
  private maxPlaceholderDurationMs;
177
179
  private isShowingPlaceholder;
178
180
  private timeUpdateHandler?;
181
+ private endedHandler?;
179
182
  private emptiedHandler?;
180
183
  private readonly tsScte35Pids;
181
184
  private readonly pmtPids;
@@ -262,9 +265,11 @@ declare class StormcloudVideoPlayer {
262
265
  private markerTypeFromSegmentationTypeId;
263
266
  private initializeTracking;
264
267
  private sendHeartbeatIfNeeded;
268
+ private isVmapEnabled;
265
269
  private fetchAdConfiguration;
266
270
  private fetchAndParseVmap;
267
271
  private parseVmapToBreaks;
272
+ private resolveVmapAdTagUrl;
268
273
  private parseVmapTimeOffsetToMs;
269
274
  private getAdBreakKey;
270
275
  private resolveBreakStartMs;
@@ -294,7 +299,8 @@ declare class StormcloudVideoPlayer {
294
299
  private showPlaceholderAndWaitForAds;
295
300
  private findCurrentOrNextBreak;
296
301
  private onTimeUpdate;
297
- private handleMidAdJoin;
302
+ private onVideoEnded;
303
+ private handleVmapAdBreak;
298
304
  private scheduleAdStopCountdown;
299
305
  private clearAdStopTimer;
300
306
  private ensureAdStoppedByTimer;
@@ -373,6 +379,7 @@ interface BaseStormcloudPlayerProps {
373
379
  showCustomControls?: boolean;
374
380
  hideLoadingIndicator?: boolean;
375
381
  licenseKey?: string;
382
+ isVmap?: boolean;
376
383
  vmapUrl?: string;
377
384
  adFailsafeTimeoutMs?: number;
378
385
  minSegmentsBeforePlay?: number;
package/lib/index.d.ts CHANGED
@@ -20,6 +20,7 @@ interface StormcloudVideoPlayerConfig {
20
20
  muted?: boolean;
21
21
  allowNativeHls?: boolean;
22
22
  lowLatencyMode?: boolean;
23
+ isLiveStream?: boolean;
23
24
  driftToleranceMs?: number;
24
25
  immediateManifestAds?: boolean;
25
26
  debugAdTiming?: boolean;
@@ -34,6 +35,7 @@ interface StormcloudVideoPlayerConfig {
34
35
  licenseKey?: string;
35
36
  adPlayerType?: 'ima' | 'hls';
36
37
  vastTagUrl?: string;
38
+ isVmap?: boolean;
37
39
  vmapUrl?: string;
38
40
  vastMode?: 'adstorm' | 'default';
39
41
  minSegmentsBeforePlay?: number;
@@ -176,6 +178,7 @@ declare class StormcloudVideoPlayer {
176
178
  private maxPlaceholderDurationMs;
177
179
  private isShowingPlaceholder;
178
180
  private timeUpdateHandler?;
181
+ private endedHandler?;
179
182
  private emptiedHandler?;
180
183
  private readonly tsScte35Pids;
181
184
  private readonly pmtPids;
@@ -262,9 +265,11 @@ declare class StormcloudVideoPlayer {
262
265
  private markerTypeFromSegmentationTypeId;
263
266
  private initializeTracking;
264
267
  private sendHeartbeatIfNeeded;
268
+ private isVmapEnabled;
265
269
  private fetchAdConfiguration;
266
270
  private fetchAndParseVmap;
267
271
  private parseVmapToBreaks;
272
+ private resolveVmapAdTagUrl;
268
273
  private parseVmapTimeOffsetToMs;
269
274
  private getAdBreakKey;
270
275
  private resolveBreakStartMs;
@@ -294,7 +299,8 @@ declare class StormcloudVideoPlayer {
294
299
  private showPlaceholderAndWaitForAds;
295
300
  private findCurrentOrNextBreak;
296
301
  private onTimeUpdate;
297
- private handleMidAdJoin;
302
+ private onVideoEnded;
303
+ private handleVmapAdBreak;
298
304
  private scheduleAdStopCountdown;
299
305
  private clearAdStopTimer;
300
306
  private ensureAdStoppedByTimer;
@@ -373,6 +379,7 @@ interface BaseStormcloudPlayerProps {
373
379
  showCustomControls?: boolean;
374
380
  hideLoadingIndicator?: boolean;
375
381
  licenseKey?: string;
382
+ isVmap?: boolean;
376
383
  vmapUrl?: string;
377
384
  adFailsafeTimeoutMs?: number;
378
385
  minSegmentsBeforePlay?: number;