stormcloud-video-player 0.3.54 → 0.3.56
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/dist/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +1097 -823
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +41 -1
- package/lib/index.d.ts +41 -1
- package/lib/index.js +1090 -828
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +529 -28
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +9 -1
- package/lib/players/HlsPlayer.cjs +529 -28
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +529 -28
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/hlsAdPlayer.d.cts +1 -1
- package/lib/sdk/ima.d.cts +1 -1
- package/lib/{types-DYelrVG6.d.cts → types-Vj55FghO.d.cts} +16 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +1086 -826
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.d.cts +1 -1
- package/lib/utils/tracking.cjs +264 -3
- package/lib/utils/tracking.cjs.map +1 -1
- package/lib/utils/tracking.d.cts +12 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StormcloudVideoPlayerConfig } from '../types-
|
|
1
|
+
import { S as StormcloudVideoPlayerConfig } from '../types-Vj55FghO.cjs';
|
|
2
2
|
|
|
3
3
|
declare class StormcloudVideoPlayer {
|
|
4
4
|
private readonly video;
|
|
@@ -16,6 +16,8 @@ declare class StormcloudVideoPlayer {
|
|
|
16
16
|
private adPodQueue;
|
|
17
17
|
private apiVastTagUrl;
|
|
18
18
|
private apiNumberAds;
|
|
19
|
+
private vmapBreaks;
|
|
20
|
+
private consumedVmapBreakIds;
|
|
19
21
|
private lastHeartbeatTime;
|
|
20
22
|
private heartbeatInterval;
|
|
21
23
|
private currentAdIndex;
|
|
@@ -63,6 +65,7 @@ declare class StormcloudVideoPlayer {
|
|
|
63
65
|
private readonly maxPreloadPoolSize;
|
|
64
66
|
private preloadPoolActive;
|
|
65
67
|
private preloadPoolLoopRunning;
|
|
68
|
+
private adDetectSentForCurrentBreak;
|
|
66
69
|
constructor(config: StormcloudVideoPlayerConfig);
|
|
67
70
|
private createAdPlayer;
|
|
68
71
|
load(): Promise<void>;
|
|
@@ -86,6 +89,11 @@ declare class StormcloudVideoPlayer {
|
|
|
86
89
|
private initializeTracking;
|
|
87
90
|
private sendHeartbeatIfNeeded;
|
|
88
91
|
private fetchAdConfiguration;
|
|
92
|
+
private fetchAndParseVmap;
|
|
93
|
+
private parseVmapToBreaks;
|
|
94
|
+
private parseVmapTimeOffsetToMs;
|
|
95
|
+
private getAdBreakKey;
|
|
96
|
+
private resolveBreakStartMs;
|
|
89
97
|
getCurrentAdIndex(): number;
|
|
90
98
|
getTotalAdsInBreak(): number;
|
|
91
99
|
private generateVastUrlsWithCorrelators;
|