stormcloud-video-player 0.3.61 → 0.3.63
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 +328 -180
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +8 -1
- package/lib/index.d.ts +8 -1
- package/lib/index.js +328 -180
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +142 -45
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +6 -2
- package/lib/players/HlsPlayer.cjs +142 -45
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +142 -45
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/hlsAdPlayer.d.cts +1 -1
- package/lib/sdk/ima.d.cts +1 -1
- package/lib/{types-XKUJJhlG.d.cts → types-CjI14dPN.d.cts} +2 -0
- package/lib/ui/StormcloudVideoPlayer.cjs +326 -180
- 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
|
@@ -20,6 +20,7 @@ interface StormcloudVideoPlayerConfig {
|
|
|
20
20
|
muted?: boolean;
|
|
21
21
|
allowNativeHls?: boolean;
|
|
22
22
|
lowLatencyMode?: boolean;
|
|
23
|
+
isLiveStream?: boolean;
|
|
23
24
|
driftToleranceMs?: number;
|
|
24
25
|
immediateManifestAds?: boolean;
|
|
25
26
|
debugAdTiming?: boolean;
|
|
@@ -34,6 +35,7 @@ interface StormcloudVideoPlayerConfig {
|
|
|
34
35
|
licenseKey?: string;
|
|
35
36
|
adPlayerType?: 'ima' | 'hls';
|
|
36
37
|
vastTagUrl?: string;
|
|
38
|
+
isVmap?: boolean;
|
|
37
39
|
vmapUrl?: string;
|
|
38
40
|
vastMode?: 'adstorm' | 'default';
|
|
39
41
|
minSegmentsBeforePlay?: number;
|
|
@@ -176,6 +178,7 @@ declare class StormcloudVideoPlayer {
|
|
|
176
178
|
private maxPlaceholderDurationMs;
|
|
177
179
|
private isShowingPlaceholder;
|
|
178
180
|
private timeUpdateHandler?;
|
|
181
|
+
private endedHandler?;
|
|
179
182
|
private emptiedHandler?;
|
|
180
183
|
private readonly tsScte35Pids;
|
|
181
184
|
private readonly pmtPids;
|
|
@@ -262,9 +265,11 @@ declare class StormcloudVideoPlayer {
|
|
|
262
265
|
private markerTypeFromSegmentationTypeId;
|
|
263
266
|
private initializeTracking;
|
|
264
267
|
private sendHeartbeatIfNeeded;
|
|
268
|
+
private isVmapEnabled;
|
|
265
269
|
private fetchAdConfiguration;
|
|
266
270
|
private fetchAndParseVmap;
|
|
267
271
|
private parseVmapToBreaks;
|
|
272
|
+
private resolveVmapAdTagUrl;
|
|
268
273
|
private parseVmapTimeOffsetToMs;
|
|
269
274
|
private getAdBreakKey;
|
|
270
275
|
private resolveBreakStartMs;
|
|
@@ -294,7 +299,8 @@ declare class StormcloudVideoPlayer {
|
|
|
294
299
|
private showPlaceholderAndWaitForAds;
|
|
295
300
|
private findCurrentOrNextBreak;
|
|
296
301
|
private onTimeUpdate;
|
|
297
|
-
private
|
|
302
|
+
private onVideoEnded;
|
|
303
|
+
private handleVmapAdBreak;
|
|
298
304
|
private scheduleAdStopCountdown;
|
|
299
305
|
private clearAdStopTimer;
|
|
300
306
|
private ensureAdStoppedByTimer;
|
|
@@ -373,6 +379,7 @@ interface BaseStormcloudPlayerProps {
|
|
|
373
379
|
showCustomControls?: boolean;
|
|
374
380
|
hideLoadingIndicator?: boolean;
|
|
375
381
|
licenseKey?: string;
|
|
382
|
+
isVmap?: boolean;
|
|
376
383
|
vmapUrl?: string;
|
|
377
384
|
adFailsafeTimeoutMs?: number;
|
|
378
385
|
minSegmentsBeforePlay?: number;
|
package/lib/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ interface StormcloudVideoPlayerConfig {
|
|
|
20
20
|
muted?: boolean;
|
|
21
21
|
allowNativeHls?: boolean;
|
|
22
22
|
lowLatencyMode?: boolean;
|
|
23
|
+
isLiveStream?: boolean;
|
|
23
24
|
driftToleranceMs?: number;
|
|
24
25
|
immediateManifestAds?: boolean;
|
|
25
26
|
debugAdTiming?: boolean;
|
|
@@ -34,6 +35,7 @@ interface StormcloudVideoPlayerConfig {
|
|
|
34
35
|
licenseKey?: string;
|
|
35
36
|
adPlayerType?: 'ima' | 'hls';
|
|
36
37
|
vastTagUrl?: string;
|
|
38
|
+
isVmap?: boolean;
|
|
37
39
|
vmapUrl?: string;
|
|
38
40
|
vastMode?: 'adstorm' | 'default';
|
|
39
41
|
minSegmentsBeforePlay?: number;
|
|
@@ -176,6 +178,7 @@ declare class StormcloudVideoPlayer {
|
|
|
176
178
|
private maxPlaceholderDurationMs;
|
|
177
179
|
private isShowingPlaceholder;
|
|
178
180
|
private timeUpdateHandler?;
|
|
181
|
+
private endedHandler?;
|
|
179
182
|
private emptiedHandler?;
|
|
180
183
|
private readonly tsScte35Pids;
|
|
181
184
|
private readonly pmtPids;
|
|
@@ -262,9 +265,11 @@ declare class StormcloudVideoPlayer {
|
|
|
262
265
|
private markerTypeFromSegmentationTypeId;
|
|
263
266
|
private initializeTracking;
|
|
264
267
|
private sendHeartbeatIfNeeded;
|
|
268
|
+
private isVmapEnabled;
|
|
265
269
|
private fetchAdConfiguration;
|
|
266
270
|
private fetchAndParseVmap;
|
|
267
271
|
private parseVmapToBreaks;
|
|
272
|
+
private resolveVmapAdTagUrl;
|
|
268
273
|
private parseVmapTimeOffsetToMs;
|
|
269
274
|
private getAdBreakKey;
|
|
270
275
|
private resolveBreakStartMs;
|
|
@@ -294,7 +299,8 @@ declare class StormcloudVideoPlayer {
|
|
|
294
299
|
private showPlaceholderAndWaitForAds;
|
|
295
300
|
private findCurrentOrNextBreak;
|
|
296
301
|
private onTimeUpdate;
|
|
297
|
-
private
|
|
302
|
+
private onVideoEnded;
|
|
303
|
+
private handleVmapAdBreak;
|
|
298
304
|
private scheduleAdStopCountdown;
|
|
299
305
|
private clearAdStopTimer;
|
|
300
306
|
private ensureAdStoppedByTimer;
|
|
@@ -373,6 +379,7 @@ interface BaseStormcloudPlayerProps {
|
|
|
373
379
|
showCustomControls?: boolean;
|
|
374
380
|
hideLoadingIndicator?: boolean;
|
|
375
381
|
licenseKey?: string;
|
|
382
|
+
isVmap?: boolean;
|
|
376
383
|
vmapUrl?: string;
|
|
377
384
|
adFailsafeTimeoutMs?: number;
|
|
378
385
|
minSegmentsBeforePlay?: number;
|