stormcloud-video-player 0.8.9 → 0.8.11
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 +357 -107
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +16 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.js +357 -107
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +357 -107
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +14 -1
- package/lib/players/HlsPlayer.cjs +357 -107
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +357 -107
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/hlsAdPlayer.cjs +6 -0
- package/lib/sdk/hlsAdPlayer.cjs.map +1 -1
- package/lib/sdk/hlsAdPlayer.d.cts +1 -1
- package/lib/{types-CUKMIqHL.d.cts → types-CRd8dgO8.d.cts} +4 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +357 -107
- 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-CRd8dgO8.cjs';
|
|
2
2
|
|
|
3
3
|
declare class StormcloudVideoPlayer {
|
|
4
4
|
private readonly video;
|
|
@@ -61,6 +61,7 @@ declare class StormcloudVideoPlayer {
|
|
|
61
61
|
private readonly maxConsecutiveFailures;
|
|
62
62
|
private lastAdRequestTime;
|
|
63
63
|
private readonly minAdRequestIntervalMs;
|
|
64
|
+
private readonly defaultMinRemainingMsToStartAd;
|
|
64
65
|
private readonly backoffBaseMs;
|
|
65
66
|
private readonly maxBackoffMs;
|
|
66
67
|
private placeholderContainer;
|
|
@@ -77,6 +78,7 @@ declare class StormcloudVideoPlayer {
|
|
|
77
78
|
private preloadPoolLoopRunning;
|
|
78
79
|
private adDetectSentForCurrentBreak;
|
|
79
80
|
private adBreakEpoch;
|
|
81
|
+
private adBreakPlayedDurationMs;
|
|
80
82
|
private palNonce;
|
|
81
83
|
private palPlaybackStarted;
|
|
82
84
|
private readonly streamCorrelator;
|
|
@@ -195,7 +197,18 @@ declare class StormcloudVideoPlayer {
|
|
|
195
197
|
private clearAdFailsafeTimer;
|
|
196
198
|
private selectVastTagsForBreak;
|
|
197
199
|
private logAdState;
|
|
200
|
+
private getWallClockRemainingAdMs;
|
|
201
|
+
private getDurationBudgetRemainingMs;
|
|
202
|
+
private getLoadedAdDurationMs;
|
|
203
|
+
private adFitsRemainingBudget;
|
|
204
|
+
private logAdDurationDecision;
|
|
205
|
+
private recordPlayedAdDuration;
|
|
206
|
+
private ensureLoadedAdFitsBudget;
|
|
207
|
+
private rejectLoadedAdForDuration;
|
|
208
|
+
private markAdStarted;
|
|
198
209
|
private getRemainingAdMs;
|
|
210
|
+
private getMinRemainingMsToStartAd;
|
|
211
|
+
private hasTimeToStartAnotherAd;
|
|
199
212
|
private findBreakForTime;
|
|
200
213
|
toggleMute(): void;
|
|
201
214
|
toggleFullscreen(): Promise<void>;
|