stormcloud-video-player 0.3.20 → 0.3.22
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 +95 -1050
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +0 -26
- package/lib/index.d.ts +0 -26
- package/lib/index.js +95 -1050
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +95 -1062
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +1 -25
- package/lib/players/HlsPlayer.cjs +95 -1050
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +95 -1050
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/hlsAdPlayer.cjs +0 -45
- package/lib/sdk/hlsAdPlayer.cjs.map +1 -1
- package/lib/sdk/hlsAdPlayer.d.cts +1 -1
- package/lib/sdk/ima.cjs +3 -78
- package/lib/sdk/ima.cjs.map +1 -1
- package/lib/sdk/ima.d.cts +1 -1
- package/lib/{types-CryTJVCC.d.cts → types-Bpq0mkLY.d.cts} +0 -2
- package/lib/ui/StormcloudVideoPlayer.cjs +95 -1062
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.d.cts +1 -1
- package/lib/utils/tracking.d.cts +1 -1
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -40,8 +40,6 @@ interface StormcloudVideoPlayerConfig {
|
|
|
40
40
|
interface ImaController {
|
|
41
41
|
initialize: () => void;
|
|
42
42
|
requestAds: (vastTagUrl: string) => Promise<void>;
|
|
43
|
-
preloadAds: (vastTagUrl: string) => Promise<void>;
|
|
44
|
-
hasPreloadedAd: (vastTagUrl: string) => boolean;
|
|
45
43
|
play: () => Promise<void>;
|
|
46
44
|
stop: () => Promise<void>;
|
|
47
45
|
destroy: () => void;
|
|
@@ -129,35 +127,20 @@ declare class StormcloudVideoPlayer {
|
|
|
129
127
|
private bufferedSegmentsCount;
|
|
130
128
|
private shouldAutoplayAfterBuffering;
|
|
131
129
|
private hasInitialBufferCompleted;
|
|
132
|
-
private adPodAllUrls;
|
|
133
|
-
private preloadingAdUrls;
|
|
134
|
-
private vastToMediaUrlMap;
|
|
135
|
-
private preloadedMediaUrls;
|
|
136
|
-
private preloadingMediaUrls;
|
|
137
130
|
private adRequestTokenCounter;
|
|
138
131
|
private activeAdRequestToken;
|
|
139
132
|
private adRequestWatchdogId;
|
|
140
133
|
private adRequestWatchdogToken;
|
|
141
134
|
private adFailsafeToken;
|
|
142
|
-
private fetchedAdDurations;
|
|
143
|
-
private targetAdBreakDurationMs;
|
|
144
|
-
private isAdaptiveMode;
|
|
145
135
|
private failedVastUrls;
|
|
146
136
|
private continuousFetchingActive;
|
|
147
137
|
private adRequestQueue;
|
|
148
|
-
private successfulAdRequests;
|
|
149
138
|
private maxPlaceholderDurationMs;
|
|
150
|
-
private placeholderStartTimeMs;
|
|
151
139
|
private isShowingPlaceholder;
|
|
152
140
|
private timeUpdateHandler?;
|
|
153
141
|
private emptiedHandler?;
|
|
154
|
-
private consecutiveEmptyResponses;
|
|
155
142
|
private totalAdRequestsInBreak;
|
|
156
|
-
private lastEmptyResponseTimeMs;
|
|
157
143
|
private readonly maxTotalAdRequestsPerBreak;
|
|
158
|
-
private readonly maxConsecutiveEmptyResponses;
|
|
159
|
-
private readonly baseEmptyResponseDelayMs;
|
|
160
|
-
private readonly maxEmptyResponseDelayMs;
|
|
161
144
|
constructor(config: StormcloudVideoPlayerConfig);
|
|
162
145
|
private createAdPlayer;
|
|
163
146
|
load(): Promise<void>;
|
|
@@ -208,15 +191,6 @@ declare class StormcloudVideoPlayer {
|
|
|
208
191
|
private clearAdFailsafeTimer;
|
|
209
192
|
private selectVastTagsForBreak;
|
|
210
193
|
private logAdState;
|
|
211
|
-
private fetchAndParseVastXml;
|
|
212
|
-
private extractMediaUrlsFromVast;
|
|
213
|
-
private fetchVastDuration;
|
|
214
|
-
private calculateAdditionalAdsNeeded;
|
|
215
|
-
private addAdaptiveAdsToQueue;
|
|
216
|
-
private preloadMediaFile;
|
|
217
|
-
private preloadAllAdsInBackground;
|
|
218
|
-
private preloadSingleAd;
|
|
219
|
-
private findNextPreloadedAd;
|
|
220
194
|
private getRemainingAdMs;
|
|
221
195
|
private findBreakForTime;
|
|
222
196
|
toggleMute(): void;
|
package/lib/index.d.ts
CHANGED
|
@@ -40,8 +40,6 @@ interface StormcloudVideoPlayerConfig {
|
|
|
40
40
|
interface ImaController {
|
|
41
41
|
initialize: () => void;
|
|
42
42
|
requestAds: (vastTagUrl: string) => Promise<void>;
|
|
43
|
-
preloadAds: (vastTagUrl: string) => Promise<void>;
|
|
44
|
-
hasPreloadedAd: (vastTagUrl: string) => boolean;
|
|
45
43
|
play: () => Promise<void>;
|
|
46
44
|
stop: () => Promise<void>;
|
|
47
45
|
destroy: () => void;
|
|
@@ -129,35 +127,20 @@ declare class StormcloudVideoPlayer {
|
|
|
129
127
|
private bufferedSegmentsCount;
|
|
130
128
|
private shouldAutoplayAfterBuffering;
|
|
131
129
|
private hasInitialBufferCompleted;
|
|
132
|
-
private adPodAllUrls;
|
|
133
|
-
private preloadingAdUrls;
|
|
134
|
-
private vastToMediaUrlMap;
|
|
135
|
-
private preloadedMediaUrls;
|
|
136
|
-
private preloadingMediaUrls;
|
|
137
130
|
private adRequestTokenCounter;
|
|
138
131
|
private activeAdRequestToken;
|
|
139
132
|
private adRequestWatchdogId;
|
|
140
133
|
private adRequestWatchdogToken;
|
|
141
134
|
private adFailsafeToken;
|
|
142
|
-
private fetchedAdDurations;
|
|
143
|
-
private targetAdBreakDurationMs;
|
|
144
|
-
private isAdaptiveMode;
|
|
145
135
|
private failedVastUrls;
|
|
146
136
|
private continuousFetchingActive;
|
|
147
137
|
private adRequestQueue;
|
|
148
|
-
private successfulAdRequests;
|
|
149
138
|
private maxPlaceholderDurationMs;
|
|
150
|
-
private placeholderStartTimeMs;
|
|
151
139
|
private isShowingPlaceholder;
|
|
152
140
|
private timeUpdateHandler?;
|
|
153
141
|
private emptiedHandler?;
|
|
154
|
-
private consecutiveEmptyResponses;
|
|
155
142
|
private totalAdRequestsInBreak;
|
|
156
|
-
private lastEmptyResponseTimeMs;
|
|
157
143
|
private readonly maxTotalAdRequestsPerBreak;
|
|
158
|
-
private readonly maxConsecutiveEmptyResponses;
|
|
159
|
-
private readonly baseEmptyResponseDelayMs;
|
|
160
|
-
private readonly maxEmptyResponseDelayMs;
|
|
161
144
|
constructor(config: StormcloudVideoPlayerConfig);
|
|
162
145
|
private createAdPlayer;
|
|
163
146
|
load(): Promise<void>;
|
|
@@ -208,15 +191,6 @@ declare class StormcloudVideoPlayer {
|
|
|
208
191
|
private clearAdFailsafeTimer;
|
|
209
192
|
private selectVastTagsForBreak;
|
|
210
193
|
private logAdState;
|
|
211
|
-
private fetchAndParseVastXml;
|
|
212
|
-
private extractMediaUrlsFromVast;
|
|
213
|
-
private fetchVastDuration;
|
|
214
|
-
private calculateAdditionalAdsNeeded;
|
|
215
|
-
private addAdaptiveAdsToQueue;
|
|
216
|
-
private preloadMediaFile;
|
|
217
|
-
private preloadAllAdsInBackground;
|
|
218
|
-
private preloadSingleAd;
|
|
219
|
-
private findNextPreloadedAd;
|
|
220
194
|
private getRemainingAdMs;
|
|
221
195
|
private findBreakForTime;
|
|
222
196
|
toggleMute(): void;
|