stormcloud-video-player 0.5.5 → 0.5.7
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/README.md +28 -40
- package/dist/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +1075 -3918
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +8 -67
- package/lib/index.d.ts +8 -67
- package/lib/index.js +1076 -3903
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +1063 -3876
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +4 -37
- package/lib/players/HlsPlayer.cjs +1063 -3876
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +1063 -3876
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/prebid.cjs +114 -43
- package/lib/sdk/prebid.cjs.map +1 -1
- package/lib/sdk/prebid.d.cts +1 -1
- package/lib/sdk/prebidController.cjs +124 -71
- package/lib/sdk/prebidController.cjs.map +1 -1
- package/lib/sdk/prebidController.d.cts +2 -2
- package/lib/{types-CRi_KrjM.d.cts → types-BOJiWNWa.d.cts} +23 -7
- package/lib/ui/StormcloudVideoPlayer.cjs +1063 -3886
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.d.cts +1 -1
- package/lib/utils/browserCompat.cjs +0 -3
- package/lib/utils/browserCompat.cjs.map +1 -1
- package/lib/utils/browserCompat.d.cts +0 -1
- package/lib/utils/tracking.cjs +226 -1
- package/lib/utils/tracking.cjs.map +1 -1
- package/lib/utils/tracking.d.cts +5 -2
- package/package.json +1 -1
- package/lib/sdk/hlsAdPlayer.cjs +0 -1052
- package/lib/sdk/hlsAdPlayer.cjs.map +0 -1
- package/lib/sdk/hlsAdPlayer.d.cts +0 -10
- package/lib/sdk/ima.cjs +0 -1383
- package/lib/sdk/ima.cjs.map +0 -1
- package/lib/sdk/ima.d.cts +0 -12
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { S as StormcloudVideoPlayerConfig } from '../types-
|
|
1
|
+
import { S as StormcloudVideoPlayerConfig } from '../types-BOJiWNWa.cjs';
|
|
2
2
|
|
|
3
3
|
declare class StormcloudVideoPlayer {
|
|
4
4
|
private readonly video;
|
|
5
5
|
private readonly config;
|
|
6
6
|
private hls?;
|
|
7
|
-
private
|
|
7
|
+
private adController;
|
|
8
8
|
private attached;
|
|
9
9
|
private inAdBreak;
|
|
10
10
|
private currentAdBreakStartWallClockMs;
|
|
@@ -14,8 +14,6 @@ declare class StormcloudVideoPlayer {
|
|
|
14
14
|
private adFailsafeTimerId;
|
|
15
15
|
private ptsDriftEmaMs;
|
|
16
16
|
private adPodQueue;
|
|
17
|
-
private apiVastTagUrl;
|
|
18
|
-
private apiNumberAds;
|
|
19
17
|
private lastHeartbeatTime;
|
|
20
18
|
private heartbeatInterval;
|
|
21
19
|
private currentAdIndex;
|
|
@@ -32,9 +30,6 @@ declare class StormcloudVideoPlayer {
|
|
|
32
30
|
private adRequestWatchdogId;
|
|
33
31
|
private adRequestWatchdogToken;
|
|
34
32
|
private adFailsafeToken;
|
|
35
|
-
private failedVastUrls;
|
|
36
|
-
private temporaryFailureUrls;
|
|
37
|
-
private readonly temporaryFailureCooldownMs;
|
|
38
33
|
private continuousFetchingActive;
|
|
39
34
|
private adRequestQueue;
|
|
40
35
|
private maxPlaceholderDurationMs;
|
|
@@ -51,19 +46,12 @@ declare class StormcloudVideoPlayer {
|
|
|
51
46
|
private readonly minAdRequestIntervalMs;
|
|
52
47
|
private readonly backoffBaseMs;
|
|
53
48
|
private readonly maxBackoffMs;
|
|
54
|
-
private readonly continuousFetchWallClockBufferMs;
|
|
55
|
-
private readonly continuousFetchMaxIterations;
|
|
56
|
-
private continuousFetchQueueFullConsecutiveWaits;
|
|
57
49
|
private placeholderContainer;
|
|
58
|
-
private preloadPool;
|
|
59
|
-
private readonly maxPreloadPoolSize;
|
|
60
|
-
private preloadPoolActive;
|
|
61
|
-
private preloadPoolLoopRunning;
|
|
62
50
|
constructor(config: StormcloudVideoPlayerConfig);
|
|
63
51
|
private createAdPlayer;
|
|
64
|
-
private getAdPlayerTypeLabel;
|
|
65
52
|
load(): Promise<void>;
|
|
66
|
-
private
|
|
53
|
+
private getAdSource;
|
|
54
|
+
private attachAdControllerEventListeners;
|
|
67
55
|
private recreateAdController;
|
|
68
56
|
private ensurePlaceholderContainer;
|
|
69
57
|
private showPlaceholderLayer;
|
|
@@ -82,12 +70,8 @@ declare class StormcloudVideoPlayer {
|
|
|
82
70
|
private parseScte35Binary;
|
|
83
71
|
private initializeTracking;
|
|
84
72
|
private sendHeartbeatIfNeeded;
|
|
85
|
-
private fetchAdConfiguration;
|
|
86
|
-
private isPrebidMode;
|
|
87
|
-
private isLgStbDevice;
|
|
88
73
|
getCurrentAdIndex(): number;
|
|
89
74
|
getTotalAdsInBreak(): number;
|
|
90
|
-
private generateVastUrlsWithCorrelators;
|
|
91
75
|
isAdPlaying(): boolean;
|
|
92
76
|
isShowingAds(): boolean;
|
|
93
77
|
getStreamType(): "hls" | "other";
|
|
@@ -95,33 +79,18 @@ declare class StormcloudVideoPlayer {
|
|
|
95
79
|
private shouldContinueLiveStreamDuringAds;
|
|
96
80
|
private startAdPrefetch;
|
|
97
81
|
private clearPendingAdBreak;
|
|
98
|
-
private startPreloadPool;
|
|
99
|
-
private preloadAdIntoPool;
|
|
100
|
-
private preloadPoolLoop;
|
|
101
|
-
private getPreloadedAd;
|
|
102
|
-
private stopPreloadPool;
|
|
103
82
|
private handleAdStart;
|
|
104
|
-
private continuousFetchLoopRunning;
|
|
105
|
-
private startContinuousFetching;
|
|
106
|
-
private continuousFetchLoop;
|
|
107
|
-
private waitForQueueWithBackoff;
|
|
108
|
-
private logQueueState;
|
|
109
83
|
private stopContinuousFetching;
|
|
110
84
|
private tryNextAvailableAdWithRateLimit;
|
|
111
85
|
private tryNextAvailableAd;
|
|
112
86
|
private showPlaceholderAndWaitForAds;
|
|
113
|
-
private findCurrentOrNextBreak;
|
|
114
87
|
private onTimeUpdate;
|
|
115
|
-
private handleMidAdJoin;
|
|
116
88
|
private scheduleAdStopCountdown;
|
|
117
89
|
private clearAdStopTimer;
|
|
118
90
|
private ensureAdStoppedByTimer;
|
|
119
91
|
private scheduleAdStartIn;
|
|
120
92
|
private clearAdStartTimer;
|
|
121
93
|
private updatePtsDrift;
|
|
122
|
-
private isTemporaryAdError;
|
|
123
|
-
private isUrlInCooldown;
|
|
124
|
-
private cleanupTemporaryFailures;
|
|
125
94
|
private playSingleAd;
|
|
126
95
|
private handleAdPodComplete;
|
|
127
96
|
private handleAdFailure;
|
|
@@ -129,10 +98,8 @@ declare class StormcloudVideoPlayer {
|
|
|
129
98
|
private clearAdRequestWatchdog;
|
|
130
99
|
private startAdFailsafeTimer;
|
|
131
100
|
private clearAdFailsafeTimer;
|
|
132
|
-
private selectVastTagsForBreak;
|
|
133
101
|
private logAdState;
|
|
134
102
|
private getRemainingAdMs;
|
|
135
|
-
private findBreakForTime;
|
|
136
103
|
toggleMute(): void;
|
|
137
104
|
toggleFullscreen(): Promise<void>;
|
|
138
105
|
isMuted(): boolean;
|