stormcloud-video-player 0.5.6 → 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 +1537 -4636
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +7 -67
- package/lib/index.d.ts +7 -67
- package/lib/index.js +1540 -4623
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +811 -3880
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +3 -37
- package/lib/players/HlsPlayer.cjs +811 -3880
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +811 -3880
- 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 +123 -71
- package/lib/sdk/prebidController.cjs.map +1 -1
- package/lib/sdk/prebidController.d.cts +2 -2
- package/lib/{types-Bwp6-yys.d.cts → types-BOJiWNWa.d.cts} +4 -7
- package/lib/ui/StormcloudVideoPlayer.cjs +811 -3890
- 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;
|
|
@@ -51,20 +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
53
|
private getAdSource;
|
|
67
|
-
private
|
|
54
|
+
private attachAdControllerEventListeners;
|
|
68
55
|
private recreateAdController;
|
|
69
56
|
private ensurePlaceholderContainer;
|
|
70
57
|
private showPlaceholderLayer;
|
|
@@ -83,12 +70,8 @@ declare class StormcloudVideoPlayer {
|
|
|
83
70
|
private parseScte35Binary;
|
|
84
71
|
private initializeTracking;
|
|
85
72
|
private sendHeartbeatIfNeeded;
|
|
86
|
-
private fetchAdConfiguration;
|
|
87
|
-
private isPrebidMode;
|
|
88
|
-
private isLgStbDevice;
|
|
89
73
|
getCurrentAdIndex(): number;
|
|
90
74
|
getTotalAdsInBreak(): number;
|
|
91
|
-
private generateVastUrlsWithCorrelators;
|
|
92
75
|
isAdPlaying(): boolean;
|
|
93
76
|
isShowingAds(): boolean;
|
|
94
77
|
getStreamType(): "hls" | "other";
|
|
@@ -96,33 +79,18 @@ declare class StormcloudVideoPlayer {
|
|
|
96
79
|
private shouldContinueLiveStreamDuringAds;
|
|
97
80
|
private startAdPrefetch;
|
|
98
81
|
private clearPendingAdBreak;
|
|
99
|
-
private startPreloadPool;
|
|
100
|
-
private preloadAdIntoPool;
|
|
101
|
-
private preloadPoolLoop;
|
|
102
|
-
private getPreloadedAd;
|
|
103
|
-
private stopPreloadPool;
|
|
104
82
|
private handleAdStart;
|
|
105
|
-
private continuousFetchLoopRunning;
|
|
106
|
-
private startContinuousFetching;
|
|
107
|
-
private continuousFetchLoop;
|
|
108
|
-
private waitForQueueWithBackoff;
|
|
109
|
-
private logQueueState;
|
|
110
83
|
private stopContinuousFetching;
|
|
111
84
|
private tryNextAvailableAdWithRateLimit;
|
|
112
85
|
private tryNextAvailableAd;
|
|
113
86
|
private showPlaceholderAndWaitForAds;
|
|
114
|
-
private findCurrentOrNextBreak;
|
|
115
87
|
private onTimeUpdate;
|
|
116
|
-
private handleMidAdJoin;
|
|
117
88
|
private scheduleAdStopCountdown;
|
|
118
89
|
private clearAdStopTimer;
|
|
119
90
|
private ensureAdStoppedByTimer;
|
|
120
91
|
private scheduleAdStartIn;
|
|
121
92
|
private clearAdStartTimer;
|
|
122
93
|
private updatePtsDrift;
|
|
123
|
-
private isTemporaryAdError;
|
|
124
|
-
private isUrlInCooldown;
|
|
125
|
-
private cleanupTemporaryFailures;
|
|
126
94
|
private playSingleAd;
|
|
127
95
|
private handleAdPodComplete;
|
|
128
96
|
private handleAdFailure;
|
|
@@ -130,10 +98,8 @@ declare class StormcloudVideoPlayer {
|
|
|
130
98
|
private clearAdRequestWatchdog;
|
|
131
99
|
private startAdFailsafeTimer;
|
|
132
100
|
private clearAdFailsafeTimer;
|
|
133
|
-
private selectVastTagsForBreak;
|
|
134
101
|
private logAdState;
|
|
135
102
|
private getRemainingAdMs;
|
|
136
|
-
private findBreakForTime;
|
|
137
103
|
toggleMute(): void;
|
|
138
104
|
toggleFullscreen(): Promise<void>;
|
|
139
105
|
isMuted(): boolean;
|