stormcloud-video-player 0.7.10 → 0.7.12
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 +573 -964
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +20 -29
- package/lib/index.d.ts +20 -29
- package/lib/index.js +574 -965
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +411 -887
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +20 -24
- package/lib/players/HlsPlayer.cjs +411 -887
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +411 -887
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/adstormPlayer.cjs +9 -1
- package/lib/sdk/adstormPlayer.cjs.map +1 -1
- package/lib/sdk/adstormPlayer.d.cts +1 -1
- package/lib/{types-ClqQZM3U.d.cts → types-DrBGHN4q.d.cts} +2 -7
- package/lib/ui/StormcloudVideoPlayer.cjs +573 -964
- 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
|
|
1
|
+
import { S as StormcloudVideoPlayerConfig } from '../types-DrBGHN4q.cjs';
|
|
2
2
|
|
|
3
3
|
type DebugLogLevel = "info" | "warn" | "error";
|
|
4
4
|
declare class StormcloudVideoPlayer {
|
|
@@ -13,9 +13,7 @@ declare class StormcloudVideoPlayer {
|
|
|
13
13
|
private currentAdBreakStartWallClockMs;
|
|
14
14
|
private expectedAdBreakDurationMs;
|
|
15
15
|
private adStopTimerId;
|
|
16
|
-
private adStartTimerId;
|
|
17
16
|
private adFailsafeTimerId;
|
|
18
|
-
private ptsDriftEmaMs;
|
|
19
17
|
private adPodQueue;
|
|
20
18
|
private lastHeartbeatTime;
|
|
21
19
|
private heartbeatInterval;
|
|
@@ -38,11 +36,15 @@ declare class StormcloudVideoPlayer {
|
|
|
38
36
|
private isShowingPlaceholder;
|
|
39
37
|
private timeUpdateHandler?;
|
|
40
38
|
private emptiedHandler?;
|
|
39
|
+
private adInsertionPollingId;
|
|
40
|
+
private lastAdInsertionPoint;
|
|
41
|
+
private processedAdInsertionUpdatedAt;
|
|
42
|
+
private adInsertionOffsetTimerId;
|
|
41
43
|
private totalAdRequestsInBreak;
|
|
42
44
|
private readonly maxTotalAdRequestsPerBreak;
|
|
43
45
|
private pendingAdBreak;
|
|
44
46
|
private prefetchTimerId;
|
|
45
|
-
private
|
|
47
|
+
private savedMutedStateBeforeAd;
|
|
46
48
|
private consecutiveFailures;
|
|
47
49
|
private readonly maxConsecutiveFailures;
|
|
48
50
|
private lastAdRequestTime;
|
|
@@ -58,7 +60,7 @@ declare class StormcloudVideoPlayer {
|
|
|
58
60
|
private fillerVideo;
|
|
59
61
|
private fillerBreakTimerId;
|
|
60
62
|
private debugLogEntries;
|
|
61
|
-
private
|
|
63
|
+
private adInsertionDebugHistory;
|
|
62
64
|
constructor(config: StormcloudVideoPlayerConfig);
|
|
63
65
|
private adRequest;
|
|
64
66
|
load(): Promise<void>;
|
|
@@ -71,16 +73,6 @@ declare class StormcloudVideoPlayer {
|
|
|
71
73
|
private stopFillerBreakTimer;
|
|
72
74
|
private attach;
|
|
73
75
|
private shouldUseNativeHls;
|
|
74
|
-
private onId3Tag;
|
|
75
|
-
private parseScte35FromId3;
|
|
76
|
-
private decodeId3ValueToText;
|
|
77
|
-
private onScte35Marker;
|
|
78
|
-
private parseCueOutDuration;
|
|
79
|
-
private parseCueOutCont;
|
|
80
|
-
private parseAttributeList;
|
|
81
|
-
private toNumber;
|
|
82
|
-
private isManifestBasedMarker;
|
|
83
|
-
private parseScte35Binary;
|
|
84
76
|
private initializeTracking;
|
|
85
77
|
private sendHeartbeatIfNeeded;
|
|
86
78
|
getCurrentAdIndex(): number;
|
|
@@ -96,6 +88,12 @@ declare class StormcloudVideoPlayer {
|
|
|
96
88
|
private runAdPrefetch;
|
|
97
89
|
private clearPendingAdBreak;
|
|
98
90
|
private cancelAndClearPreloadedTokens;
|
|
91
|
+
private startAdInsertionPolling;
|
|
92
|
+
private stopAdInsertionPolling;
|
|
93
|
+
private fetchAdInsertionPoint;
|
|
94
|
+
private checkAdInsertionInManifest;
|
|
95
|
+
private fragmentMatchesSegment;
|
|
96
|
+
private clearAdInsertionOffsetTimer;
|
|
99
97
|
private startContinuousFetchLoop;
|
|
100
98
|
private runContinuousFetchLoop;
|
|
101
99
|
private handleAdStart;
|
|
@@ -107,9 +105,6 @@ declare class StormcloudVideoPlayer {
|
|
|
107
105
|
private scheduleAdStopCountdown;
|
|
108
106
|
private clearAdStopTimer;
|
|
109
107
|
private ensureAdStoppedByTimer;
|
|
110
|
-
private scheduleAdStartIn;
|
|
111
|
-
private clearAdStartTimer;
|
|
112
|
-
private updatePtsDrift;
|
|
113
108
|
private handleAdPodComplete;
|
|
114
109
|
private handleAdFailure;
|
|
115
110
|
private startAdRequestWatchdog;
|
|
@@ -118,14 +113,15 @@ declare class StormcloudVideoPlayer {
|
|
|
118
113
|
private clearAdFailsafeTimer;
|
|
119
114
|
private logAdState;
|
|
120
115
|
private getRemainingAdMs;
|
|
121
|
-
private pushScteMarker;
|
|
122
116
|
private pushDebugLog;
|
|
123
|
-
|
|
117
|
+
private pushAdInsertionDebug;
|
|
118
|
+
getAdInsertionDebugLog(): ReadonlyArray<{
|
|
124
119
|
timestampMs: number;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
120
|
+
event: string;
|
|
121
|
+
segmentName: string;
|
|
122
|
+
offsetSeconds?: number;
|
|
123
|
+
updatedAt?: string;
|
|
124
|
+
detail?: string;
|
|
129
125
|
}>;
|
|
130
126
|
getDebugLogs(): ReadonlyArray<{
|
|
131
127
|
timestampMs: number;
|