stormcloud-video-player 0.3.62 → 0.3.64
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 +382 -206
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +37 -2
- package/lib/index.d.ts +37 -2
- package/lib/index.js +323 -207
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +291 -205
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +6 -2
- package/lib/players/HlsPlayer.cjs +291 -205
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +291 -205
- 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-BJPNhfLV.d.cts → types-CjI14dPN.d.cts} +1 -0
- package/lib/ui/StormcloudVideoPlayer.cjs +296 -206
- 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/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-CjI14dPN.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;
|
|
@@ -128,9 +129,11 @@ declare class StormcloudVideoPlayer {
|
|
|
128
129
|
private markerTypeFromSegmentationTypeId;
|
|
129
130
|
private initializeTracking;
|
|
130
131
|
private sendHeartbeatIfNeeded;
|
|
132
|
+
private isVmapEnabled;
|
|
131
133
|
private fetchAdConfiguration;
|
|
132
134
|
private fetchAndParseVmap;
|
|
133
135
|
private parseVmapToBreaks;
|
|
136
|
+
private resolveVmapAdTagUrl;
|
|
134
137
|
private parseVmapTimeOffsetToMs;
|
|
135
138
|
private getAdBreakKey;
|
|
136
139
|
private resolveBreakStartMs;
|
|
@@ -160,7 +163,8 @@ declare class StormcloudVideoPlayer {
|
|
|
160
163
|
private showPlaceholderAndWaitForAds;
|
|
161
164
|
private findCurrentOrNextBreak;
|
|
162
165
|
private onTimeUpdate;
|
|
163
|
-
private
|
|
166
|
+
private onVideoEnded;
|
|
167
|
+
private handleVmapAdBreak;
|
|
164
168
|
private scheduleAdStopCountdown;
|
|
165
169
|
private clearAdStopTimer;
|
|
166
170
|
private ensureAdStoppedByTimer;
|