stormcloud-video-player 0.7.9 → 0.7.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/lib/index.d.cts CHANGED
@@ -35,6 +35,7 @@ interface StormcloudVideoPlayerConfig {
35
35
  disableFiller?: boolean;
36
36
  adTransitionGapMs?: number;
37
37
  singlePipelineMode?: boolean;
38
+ projectId?: string;
38
39
  }
39
40
  interface Scte35Marker {
40
41
  type: "start" | "end" | "progress";
@@ -155,6 +156,10 @@ declare class StormcloudVideoPlayer {
155
156
  private isShowingPlaceholder;
156
157
  private timeUpdateHandler?;
157
158
  private emptiedHandler?;
159
+ private adInsertionPollingId;
160
+ private lastAdInsertionPoint;
161
+ private processedAdInsertionUpdatedAt;
162
+ private adInsertionOffsetTimerId;
158
163
  private totalAdRequestsInBreak;
159
164
  private readonly maxTotalAdRequestsPerBreak;
160
165
  private pendingAdBreak;
@@ -176,6 +181,7 @@ declare class StormcloudVideoPlayer {
176
181
  private fillerBreakTimerId;
177
182
  private debugLogEntries;
178
183
  private scteMarkerHistory;
184
+ private adInsertionDebugHistory;
179
185
  constructor(config: StormcloudVideoPlayerConfig);
180
186
  private adRequest;
181
187
  load(): Promise<void>;
@@ -213,6 +219,12 @@ declare class StormcloudVideoPlayer {
213
219
  private runAdPrefetch;
214
220
  private clearPendingAdBreak;
215
221
  private cancelAndClearPreloadedTokens;
222
+ private startAdInsertionPolling;
223
+ private stopAdInsertionPolling;
224
+ private fetchAdInsertionPoint;
225
+ private checkAdInsertionInManifest;
226
+ private fragmentMatchesSegment;
227
+ private clearAdInsertionOffsetTimer;
216
228
  private startContinuousFetchLoop;
217
229
  private runContinuousFetchLoop;
218
230
  private handleAdStart;
@@ -244,6 +256,15 @@ declare class StormcloudVideoPlayer {
244
256
  durationSeconds?: number;
245
257
  raw?: unknown;
246
258
  }>;
259
+ private pushAdInsertionDebug;
260
+ getAdInsertionDebugLog(): ReadonlyArray<{
261
+ timestampMs: number;
262
+ event: string;
263
+ segmentName: string;
264
+ offsetSeconds?: number;
265
+ updatedAt?: string;
266
+ detail?: string;
267
+ }>;
247
268
  getDebugLogs(): ReadonlyArray<{
248
269
  timestampMs: number;
249
270
  level: DebugLogLevel;
package/lib/index.d.ts CHANGED
@@ -35,6 +35,7 @@ interface StormcloudVideoPlayerConfig {
35
35
  disableFiller?: boolean;
36
36
  adTransitionGapMs?: number;
37
37
  singlePipelineMode?: boolean;
38
+ projectId?: string;
38
39
  }
39
40
  interface Scte35Marker {
40
41
  type: "start" | "end" | "progress";
@@ -155,6 +156,10 @@ declare class StormcloudVideoPlayer {
155
156
  private isShowingPlaceholder;
156
157
  private timeUpdateHandler?;
157
158
  private emptiedHandler?;
159
+ private adInsertionPollingId;
160
+ private lastAdInsertionPoint;
161
+ private processedAdInsertionUpdatedAt;
162
+ private adInsertionOffsetTimerId;
158
163
  private totalAdRequestsInBreak;
159
164
  private readonly maxTotalAdRequestsPerBreak;
160
165
  private pendingAdBreak;
@@ -176,6 +181,7 @@ declare class StormcloudVideoPlayer {
176
181
  private fillerBreakTimerId;
177
182
  private debugLogEntries;
178
183
  private scteMarkerHistory;
184
+ private adInsertionDebugHistory;
179
185
  constructor(config: StormcloudVideoPlayerConfig);
180
186
  private adRequest;
181
187
  load(): Promise<void>;
@@ -213,6 +219,12 @@ declare class StormcloudVideoPlayer {
213
219
  private runAdPrefetch;
214
220
  private clearPendingAdBreak;
215
221
  private cancelAndClearPreloadedTokens;
222
+ private startAdInsertionPolling;
223
+ private stopAdInsertionPolling;
224
+ private fetchAdInsertionPoint;
225
+ private checkAdInsertionInManifest;
226
+ private fragmentMatchesSegment;
227
+ private clearAdInsertionOffsetTimer;
216
228
  private startContinuousFetchLoop;
217
229
  private runContinuousFetchLoop;
218
230
  private handleAdStart;
@@ -244,6 +256,15 @@ declare class StormcloudVideoPlayer {
244
256
  durationSeconds?: number;
245
257
  raw?: unknown;
246
258
  }>;
259
+ private pushAdInsertionDebug;
260
+ getAdInsertionDebugLog(): ReadonlyArray<{
261
+ timestampMs: number;
262
+ event: string;
263
+ segmentName: string;
264
+ offsetSeconds?: number;
265
+ updatedAt?: string;
266
+ detail?: string;
267
+ }>;
247
268
  getDebugLogs(): ReadonlyArray<{
248
269
  timestampMs: number;
249
270
  level: DebugLogLevel;