stormcloud-video-player 0.8.3 → 0.8.5
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 +3 -1
- package/lib/index.cjs +553 -217
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +46 -2
- package/lib/index.d.ts +46 -2
- package/lib/index.js +494 -218
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +462 -216
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +11 -2
- package/lib/players/HlsPlayer.cjs +462 -216
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +462 -216
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/hlsAdPlayer.d.cts +1 -1
- package/lib/{types-DWVgdqF-.d.cts → types-CUKMIqHL.d.cts} +5 -0
- package/lib/ui/StormcloudVideoPlayer.cjs +467 -217
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.d.cts +1 -1
- package/lib/utils/mqttClient.cjs +245 -0
- package/lib/utils/mqttClient.cjs.map +1 -0
- package/lib/utils/mqttClient.d.cts +13 -0
- package/lib/utils/mqttConfig.cjs +141 -0
- package/lib/utils/mqttConfig.cjs.map +1 -0
- package/lib/utils/mqttConfig.d.cts +20 -0
- package/lib/utils/tracking.cjs +182 -170
- package/lib/utils/tracking.cjs.map +1 -1
- package/lib/utils/tracking.d.cts +1 -1
- package/lib/utils/vastMacros.cjs +231 -0
- package/lib/utils/vastMacros.cjs.map +1 -0
- package/lib/utils/vastMacros.d.cts +24 -0
- package/package.json +3 -1
- package/src/certs/emqxsl-ca.crt +22 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StormcloudVideoPlayerConfig } from '../types-
|
|
1
|
+
import { S as StormcloudVideoPlayerConfig } from '../types-CUKMIqHL.cjs';
|
|
2
2
|
|
|
3
3
|
declare class StormcloudVideoPlayer {
|
|
4
4
|
private readonly video;
|
|
@@ -42,6 +42,7 @@ declare class StormcloudVideoPlayer {
|
|
|
42
42
|
private maxPlaceholderDurationMs;
|
|
43
43
|
private isShowingPlaceholder;
|
|
44
44
|
private timeUpdateHandler?;
|
|
45
|
+
private endedHandler?;
|
|
45
46
|
private emptiedHandler?;
|
|
46
47
|
private readonly tsScte35Pids;
|
|
47
48
|
private readonly pmtPids;
|
|
@@ -77,6 +78,11 @@ declare class StormcloudVideoPlayer {
|
|
|
77
78
|
private adDetectSentForCurrentBreak;
|
|
78
79
|
private palNonce;
|
|
79
80
|
private palPlaybackStarted;
|
|
81
|
+
private readonly streamCorrelator;
|
|
82
|
+
private consentSignals;
|
|
83
|
+
private podCounter;
|
|
84
|
+
private podAssignedByPrefetch;
|
|
85
|
+
private adRequestPositionInBreak;
|
|
80
86
|
constructor(config: StormcloudVideoPlayerConfig);
|
|
81
87
|
private createAdPlayer;
|
|
82
88
|
load(): Promise<void>;
|
|
@@ -130,6 +136,7 @@ declare class StormcloudVideoPlayer {
|
|
|
130
136
|
private markerTypeFromSegmentationTypeId;
|
|
131
137
|
private initializeTracking;
|
|
132
138
|
private sendHeartbeatIfNeeded;
|
|
139
|
+
private isVmapEnabled;
|
|
133
140
|
private fetchAdConfiguration;
|
|
134
141
|
private fetchAndParseVmap;
|
|
135
142
|
private parseVmapToBreaks;
|
|
@@ -139,6 +146,7 @@ declare class StormcloudVideoPlayer {
|
|
|
139
146
|
getCurrentAdIndex(): number;
|
|
140
147
|
getTotalAdsInBreak(): number;
|
|
141
148
|
getAdRemainingMs(): number;
|
|
149
|
+
private beginNewAdPod;
|
|
142
150
|
private generateVastUrlsWithCorrelators;
|
|
143
151
|
isAdPlaying(): boolean;
|
|
144
152
|
isShowingAds(): boolean;
|
|
@@ -162,7 +170,8 @@ declare class StormcloudVideoPlayer {
|
|
|
162
170
|
private showPlaceholderAndWaitForAds;
|
|
163
171
|
private findCurrentOrNextBreak;
|
|
164
172
|
private onTimeUpdate;
|
|
165
|
-
private
|
|
173
|
+
private onVideoEnded;
|
|
174
|
+
private handleVmapAdBreak;
|
|
166
175
|
private scheduleAdStopCountdown;
|
|
167
176
|
private clearAdStopTimer;
|
|
168
177
|
private ensureAdStoppedByTimer;
|