stormcloud-video-player 0.7.11 → 0.7.13
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 +367 -778
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1 -31
- package/lib/index.d.ts +1 -31
- package/lib/index.js +368 -779
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +246 -744
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +2 -26
- package/lib/players/HlsPlayer.cjs +246 -744
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +246 -744
- 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-jU4lq0ST.d.cts → types-DrBGHN4q.d.cts} +1 -7
- package/lib/ui/StormcloudVideoPlayer.cjs +367 -778
- 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
|
@@ -37,12 +37,6 @@ interface StormcloudVideoPlayerConfig {
|
|
|
37
37
|
singlePipelineMode?: boolean;
|
|
38
38
|
projectId?: string;
|
|
39
39
|
}
|
|
40
|
-
interface Scte35Marker {
|
|
41
|
-
type: "start" | "end" | "progress";
|
|
42
|
-
ptsSeconds?: number;
|
|
43
|
-
durationSeconds?: number;
|
|
44
|
-
raw?: unknown;
|
|
45
|
-
}
|
|
46
40
|
interface AdController {
|
|
47
41
|
initialize: () => void;
|
|
48
42
|
requestAds: () => Promise<void>;
|
|
@@ -131,9 +125,7 @@ declare class StormcloudVideoPlayer {
|
|
|
131
125
|
private currentAdBreakStartWallClockMs;
|
|
132
126
|
private expectedAdBreakDurationMs;
|
|
133
127
|
private adStopTimerId;
|
|
134
|
-
private adStartTimerId;
|
|
135
128
|
private adFailsafeTimerId;
|
|
136
|
-
private ptsDriftEmaMs;
|
|
137
129
|
private adPodQueue;
|
|
138
130
|
private lastHeartbeatTime;
|
|
139
131
|
private heartbeatInterval;
|
|
@@ -164,7 +156,7 @@ declare class StormcloudVideoPlayer {
|
|
|
164
156
|
private readonly maxTotalAdRequestsPerBreak;
|
|
165
157
|
private pendingAdBreak;
|
|
166
158
|
private prefetchTimerId;
|
|
167
|
-
private
|
|
159
|
+
private savedMutedStateBeforeAd;
|
|
168
160
|
private consecutiveFailures;
|
|
169
161
|
private readonly maxConsecutiveFailures;
|
|
170
162
|
private lastAdRequestTime;
|
|
@@ -180,7 +172,6 @@ declare class StormcloudVideoPlayer {
|
|
|
180
172
|
private fillerVideo;
|
|
181
173
|
private fillerBreakTimerId;
|
|
182
174
|
private debugLogEntries;
|
|
183
|
-
private scteMarkerHistory;
|
|
184
175
|
private adInsertionDebugHistory;
|
|
185
176
|
constructor(config: StormcloudVideoPlayerConfig);
|
|
186
177
|
private adRequest;
|
|
@@ -194,16 +185,6 @@ declare class StormcloudVideoPlayer {
|
|
|
194
185
|
private stopFillerBreakTimer;
|
|
195
186
|
private attach;
|
|
196
187
|
private shouldUseNativeHls;
|
|
197
|
-
private onId3Tag;
|
|
198
|
-
private parseScte35FromId3;
|
|
199
|
-
private decodeId3ValueToText;
|
|
200
|
-
private onScte35Marker;
|
|
201
|
-
private parseCueOutDuration;
|
|
202
|
-
private parseCueOutCont;
|
|
203
|
-
private parseAttributeList;
|
|
204
|
-
private toNumber;
|
|
205
|
-
private isManifestBasedMarker;
|
|
206
|
-
private parseScte35Binary;
|
|
207
188
|
private initializeTracking;
|
|
208
189
|
private sendHeartbeatIfNeeded;
|
|
209
190
|
getCurrentAdIndex(): number;
|
|
@@ -236,9 +217,6 @@ declare class StormcloudVideoPlayer {
|
|
|
236
217
|
private scheduleAdStopCountdown;
|
|
237
218
|
private clearAdStopTimer;
|
|
238
219
|
private ensureAdStoppedByTimer;
|
|
239
|
-
private scheduleAdStartIn;
|
|
240
|
-
private clearAdStartTimer;
|
|
241
|
-
private updatePtsDrift;
|
|
242
220
|
private handleAdPodComplete;
|
|
243
221
|
private handleAdFailure;
|
|
244
222
|
private startAdRequestWatchdog;
|
|
@@ -247,15 +225,7 @@ declare class StormcloudVideoPlayer {
|
|
|
247
225
|
private clearAdFailsafeTimer;
|
|
248
226
|
private logAdState;
|
|
249
227
|
private getRemainingAdMs;
|
|
250
|
-
private pushScteMarker;
|
|
251
228
|
private pushDebugLog;
|
|
252
|
-
getRecentScteMarkers(): ReadonlyArray<{
|
|
253
|
-
timestampMs: number;
|
|
254
|
-
type: Scte35Marker["type"];
|
|
255
|
-
ptsSeconds?: number;
|
|
256
|
-
durationSeconds?: number;
|
|
257
|
-
raw?: unknown;
|
|
258
|
-
}>;
|
|
259
229
|
private pushAdInsertionDebug;
|
|
260
230
|
getAdInsertionDebugLog(): ReadonlyArray<{
|
|
261
231
|
timestampMs: number;
|
package/lib/index.d.ts
CHANGED
|
@@ -37,12 +37,6 @@ interface StormcloudVideoPlayerConfig {
|
|
|
37
37
|
singlePipelineMode?: boolean;
|
|
38
38
|
projectId?: string;
|
|
39
39
|
}
|
|
40
|
-
interface Scte35Marker {
|
|
41
|
-
type: "start" | "end" | "progress";
|
|
42
|
-
ptsSeconds?: number;
|
|
43
|
-
durationSeconds?: number;
|
|
44
|
-
raw?: unknown;
|
|
45
|
-
}
|
|
46
40
|
interface AdController {
|
|
47
41
|
initialize: () => void;
|
|
48
42
|
requestAds: () => Promise<void>;
|
|
@@ -131,9 +125,7 @@ declare class StormcloudVideoPlayer {
|
|
|
131
125
|
private currentAdBreakStartWallClockMs;
|
|
132
126
|
private expectedAdBreakDurationMs;
|
|
133
127
|
private adStopTimerId;
|
|
134
|
-
private adStartTimerId;
|
|
135
128
|
private adFailsafeTimerId;
|
|
136
|
-
private ptsDriftEmaMs;
|
|
137
129
|
private adPodQueue;
|
|
138
130
|
private lastHeartbeatTime;
|
|
139
131
|
private heartbeatInterval;
|
|
@@ -164,7 +156,7 @@ declare class StormcloudVideoPlayer {
|
|
|
164
156
|
private readonly maxTotalAdRequestsPerBreak;
|
|
165
157
|
private pendingAdBreak;
|
|
166
158
|
private prefetchTimerId;
|
|
167
|
-
private
|
|
159
|
+
private savedMutedStateBeforeAd;
|
|
168
160
|
private consecutiveFailures;
|
|
169
161
|
private readonly maxConsecutiveFailures;
|
|
170
162
|
private lastAdRequestTime;
|
|
@@ -180,7 +172,6 @@ declare class StormcloudVideoPlayer {
|
|
|
180
172
|
private fillerVideo;
|
|
181
173
|
private fillerBreakTimerId;
|
|
182
174
|
private debugLogEntries;
|
|
183
|
-
private scteMarkerHistory;
|
|
184
175
|
private adInsertionDebugHistory;
|
|
185
176
|
constructor(config: StormcloudVideoPlayerConfig);
|
|
186
177
|
private adRequest;
|
|
@@ -194,16 +185,6 @@ declare class StormcloudVideoPlayer {
|
|
|
194
185
|
private stopFillerBreakTimer;
|
|
195
186
|
private attach;
|
|
196
187
|
private shouldUseNativeHls;
|
|
197
|
-
private onId3Tag;
|
|
198
|
-
private parseScte35FromId3;
|
|
199
|
-
private decodeId3ValueToText;
|
|
200
|
-
private onScte35Marker;
|
|
201
|
-
private parseCueOutDuration;
|
|
202
|
-
private parseCueOutCont;
|
|
203
|
-
private parseAttributeList;
|
|
204
|
-
private toNumber;
|
|
205
|
-
private isManifestBasedMarker;
|
|
206
|
-
private parseScte35Binary;
|
|
207
188
|
private initializeTracking;
|
|
208
189
|
private sendHeartbeatIfNeeded;
|
|
209
190
|
getCurrentAdIndex(): number;
|
|
@@ -236,9 +217,6 @@ declare class StormcloudVideoPlayer {
|
|
|
236
217
|
private scheduleAdStopCountdown;
|
|
237
218
|
private clearAdStopTimer;
|
|
238
219
|
private ensureAdStoppedByTimer;
|
|
239
|
-
private scheduleAdStartIn;
|
|
240
|
-
private clearAdStartTimer;
|
|
241
|
-
private updatePtsDrift;
|
|
242
220
|
private handleAdPodComplete;
|
|
243
221
|
private handleAdFailure;
|
|
244
222
|
private startAdRequestWatchdog;
|
|
@@ -247,15 +225,7 @@ declare class StormcloudVideoPlayer {
|
|
|
247
225
|
private clearAdFailsafeTimer;
|
|
248
226
|
private logAdState;
|
|
249
227
|
private getRemainingAdMs;
|
|
250
|
-
private pushScteMarker;
|
|
251
228
|
private pushDebugLog;
|
|
252
|
-
getRecentScteMarkers(): ReadonlyArray<{
|
|
253
|
-
timestampMs: number;
|
|
254
|
-
type: Scte35Marker["type"];
|
|
255
|
-
ptsSeconds?: number;
|
|
256
|
-
durationSeconds?: number;
|
|
257
|
-
raw?: unknown;
|
|
258
|
-
}>;
|
|
259
229
|
private pushAdInsertionDebug;
|
|
260
230
|
getAdInsertionDebugLog(): ReadonlyArray<{
|
|
261
231
|
timestampMs: number;
|