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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StormcloudVideoPlayerConfig } from '../types-
|
|
1
|
+
import { S as StormcloudVideoPlayerConfig } from '../types-Bpq0mkLY.cjs';
|
|
2
2
|
|
|
3
3
|
declare class StormcloudVideoPlayer {
|
|
4
4
|
private readonly video;
|
|
@@ -27,35 +27,20 @@ declare class StormcloudVideoPlayer {
|
|
|
27
27
|
private bufferedSegmentsCount;
|
|
28
28
|
private shouldAutoplayAfterBuffering;
|
|
29
29
|
private hasInitialBufferCompleted;
|
|
30
|
-
private adPodAllUrls;
|
|
31
|
-
private preloadingAdUrls;
|
|
32
|
-
private vastToMediaUrlMap;
|
|
33
|
-
private preloadedMediaUrls;
|
|
34
|
-
private preloadingMediaUrls;
|
|
35
30
|
private adRequestTokenCounter;
|
|
36
31
|
private activeAdRequestToken;
|
|
37
32
|
private adRequestWatchdogId;
|
|
38
33
|
private adRequestWatchdogToken;
|
|
39
34
|
private adFailsafeToken;
|
|
40
|
-
private fetchedAdDurations;
|
|
41
|
-
private targetAdBreakDurationMs;
|
|
42
|
-
private isAdaptiveMode;
|
|
43
35
|
private failedVastUrls;
|
|
44
36
|
private continuousFetchingActive;
|
|
45
37
|
private adRequestQueue;
|
|
46
|
-
private successfulAdRequests;
|
|
47
38
|
private maxPlaceholderDurationMs;
|
|
48
|
-
private placeholderStartTimeMs;
|
|
49
39
|
private isShowingPlaceholder;
|
|
50
40
|
private timeUpdateHandler?;
|
|
51
41
|
private emptiedHandler?;
|
|
52
|
-
private consecutiveEmptyResponses;
|
|
53
42
|
private totalAdRequestsInBreak;
|
|
54
|
-
private lastEmptyResponseTimeMs;
|
|
55
43
|
private readonly maxTotalAdRequestsPerBreak;
|
|
56
|
-
private readonly maxConsecutiveEmptyResponses;
|
|
57
|
-
private readonly baseEmptyResponseDelayMs;
|
|
58
|
-
private readonly maxEmptyResponseDelayMs;
|
|
59
44
|
constructor(config: StormcloudVideoPlayerConfig);
|
|
60
45
|
private createAdPlayer;
|
|
61
46
|
load(): Promise<void>;
|
|
@@ -106,15 +91,6 @@ declare class StormcloudVideoPlayer {
|
|
|
106
91
|
private clearAdFailsafeTimer;
|
|
107
92
|
private selectVastTagsForBreak;
|
|
108
93
|
private logAdState;
|
|
109
|
-
private fetchAndParseVastXml;
|
|
110
|
-
private extractMediaUrlsFromVast;
|
|
111
|
-
private fetchVastDuration;
|
|
112
|
-
private calculateAdditionalAdsNeeded;
|
|
113
|
-
private addAdaptiveAdsToQueue;
|
|
114
|
-
private preloadMediaFile;
|
|
115
|
-
private preloadAllAdsInBackground;
|
|
116
|
-
private preloadSingleAd;
|
|
117
|
-
private findNextPreloadedAd;
|
|
118
94
|
private getRemainingAdMs;
|
|
119
95
|
private findBreakForTime;
|
|
120
96
|
toggleMute(): void;
|