stormcloud-video-player 0.5.6 → 0.5.8
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 +2122 -5135
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +9 -67
- package/lib/index.d.ts +9 -67
- package/lib/index.js +2146 -5143
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +879 -3862
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +5 -37
- package/lib/players/HlsPlayer.cjs +879 -3862
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +879 -3862
- 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 +127 -77
- package/lib/sdk/prebidController.cjs.map +1 -1
- package/lib/sdk/prebidController.d.cts +2 -2
- package/lib/sdk/vastParser.cjs +3 -5
- package/lib/sdk/vastParser.cjs.map +1 -1
- package/lib/sdk/vastParser.d.cts +1 -1
- package/lib/{types-Bwp6-yys.d.cts → types-BOJiWNWa.d.cts} +4 -7
- package/lib/ui/StormcloudVideoPlayer.cjs +879 -3872
- 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.d.cts +1 -1
- package/package.json +1 -1
- package/lib/sdk/hlsAdPlayer.cjs +0 -1053
- package/lib/sdk/hlsAdPlayer.cjs.map +0 -1
- package/lib/sdk/hlsAdPlayer.d.cts +0 -10
- package/lib/sdk/ima.cjs +0 -1384
- 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;
|
|
@@ -45,26 +40,20 @@ declare class StormcloudVideoPlayer {
|
|
|
45
40
|
private readonly maxTotalAdRequestsPerBreak;
|
|
46
41
|
private pendingAdBreak;
|
|
47
42
|
private prefetchTimerId;
|
|
43
|
+
private prefetchAdPromise;
|
|
44
|
+
private savedMutedStateBeforeScte;
|
|
48
45
|
private consecutiveFailures;
|
|
49
46
|
private readonly maxConsecutiveFailures;
|
|
50
47
|
private lastAdRequestTime;
|
|
51
48
|
private readonly minAdRequestIntervalMs;
|
|
52
49
|
private readonly backoffBaseMs;
|
|
53
50
|
private readonly maxBackoffMs;
|
|
54
|
-
private readonly continuousFetchWallClockBufferMs;
|
|
55
|
-
private readonly continuousFetchMaxIterations;
|
|
56
|
-
private continuousFetchQueueFullConsecutiveWaits;
|
|
57
51
|
private placeholderContainer;
|
|
58
|
-
private preloadPool;
|
|
59
|
-
private readonly maxPreloadPoolSize;
|
|
60
|
-
private preloadPoolActive;
|
|
61
|
-
private preloadPoolLoopRunning;
|
|
62
52
|
constructor(config: StormcloudVideoPlayerConfig);
|
|
63
53
|
private createAdPlayer;
|
|
64
|
-
private getAdPlayerTypeLabel;
|
|
65
54
|
load(): Promise<void>;
|
|
66
55
|
private getAdSource;
|
|
67
|
-
private
|
|
56
|
+
private attachAdControllerEventListeners;
|
|
68
57
|
private recreateAdController;
|
|
69
58
|
private ensurePlaceholderContainer;
|
|
70
59
|
private showPlaceholderLayer;
|
|
@@ -83,12 +72,8 @@ declare class StormcloudVideoPlayer {
|
|
|
83
72
|
private parseScte35Binary;
|
|
84
73
|
private initializeTracking;
|
|
85
74
|
private sendHeartbeatIfNeeded;
|
|
86
|
-
private fetchAdConfiguration;
|
|
87
|
-
private isPrebidMode;
|
|
88
|
-
private isLgStbDevice;
|
|
89
75
|
getCurrentAdIndex(): number;
|
|
90
76
|
getTotalAdsInBreak(): number;
|
|
91
|
-
private generateVastUrlsWithCorrelators;
|
|
92
77
|
isAdPlaying(): boolean;
|
|
93
78
|
isShowingAds(): boolean;
|
|
94
79
|
getStreamType(): "hls" | "other";
|
|
@@ -96,33 +81,18 @@ declare class StormcloudVideoPlayer {
|
|
|
96
81
|
private shouldContinueLiveStreamDuringAds;
|
|
97
82
|
private startAdPrefetch;
|
|
98
83
|
private clearPendingAdBreak;
|
|
99
|
-
private startPreloadPool;
|
|
100
|
-
private preloadAdIntoPool;
|
|
101
|
-
private preloadPoolLoop;
|
|
102
|
-
private getPreloadedAd;
|
|
103
|
-
private stopPreloadPool;
|
|
104
84
|
private handleAdStart;
|
|
105
|
-
private continuousFetchLoopRunning;
|
|
106
|
-
private startContinuousFetching;
|
|
107
|
-
private continuousFetchLoop;
|
|
108
|
-
private waitForQueueWithBackoff;
|
|
109
|
-
private logQueueState;
|
|
110
85
|
private stopContinuousFetching;
|
|
111
86
|
private tryNextAvailableAdWithRateLimit;
|
|
112
87
|
private tryNextAvailableAd;
|
|
113
88
|
private showPlaceholderAndWaitForAds;
|
|
114
|
-
private findCurrentOrNextBreak;
|
|
115
89
|
private onTimeUpdate;
|
|
116
|
-
private handleMidAdJoin;
|
|
117
90
|
private scheduleAdStopCountdown;
|
|
118
91
|
private clearAdStopTimer;
|
|
119
92
|
private ensureAdStoppedByTimer;
|
|
120
93
|
private scheduleAdStartIn;
|
|
121
94
|
private clearAdStartTimer;
|
|
122
95
|
private updatePtsDrift;
|
|
123
|
-
private isTemporaryAdError;
|
|
124
|
-
private isUrlInCooldown;
|
|
125
|
-
private cleanupTemporaryFailures;
|
|
126
96
|
private playSingleAd;
|
|
127
97
|
private handleAdPodComplete;
|
|
128
98
|
private handleAdFailure;
|
|
@@ -130,10 +100,8 @@ declare class StormcloudVideoPlayer {
|
|
|
130
100
|
private clearAdRequestWatchdog;
|
|
131
101
|
private startAdFailsafeTimer;
|
|
132
102
|
private clearAdFailsafeTimer;
|
|
133
|
-
private selectVastTagsForBreak;
|
|
134
103
|
private logAdState;
|
|
135
104
|
private getRemainingAdMs;
|
|
136
|
-
private findBreakForTime;
|
|
137
105
|
toggleMute(): void;
|
|
138
106
|
toggleFullscreen(): Promise<void>;
|
|
139
107
|
isMuted(): boolean;
|