stormcloud-video-player 0.8.3 → 0.8.4
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 +353 -203
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +36 -2
- package/lib/index.d.ts +36 -2
- package/lib/index.js +294 -204
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +262 -202
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +5 -2
- package/lib/players/HlsPlayer.cjs +262 -202
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +262 -202
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/hlsAdPlayer.d.cts +1 -1
- package/lib/{types-DWVgdqF-.d.cts → types-BmF_60m2.d.cts} +1 -0
- package/lib/ui/StormcloudVideoPlayer.cjs +267 -203
- 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-BmF_60m2.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;
|
|
@@ -130,6 +131,7 @@ declare class StormcloudVideoPlayer {
|
|
|
130
131
|
private markerTypeFromSegmentationTypeId;
|
|
131
132
|
private initializeTracking;
|
|
132
133
|
private sendHeartbeatIfNeeded;
|
|
134
|
+
private isVmapEnabled;
|
|
133
135
|
private fetchAdConfiguration;
|
|
134
136
|
private fetchAndParseVmap;
|
|
135
137
|
private parseVmapToBreaks;
|
|
@@ -162,7 +164,8 @@ declare class StormcloudVideoPlayer {
|
|
|
162
164
|
private showPlaceholderAndWaitForAds;
|
|
163
165
|
private findCurrentOrNextBreak;
|
|
164
166
|
private onTimeUpdate;
|
|
165
|
-
private
|
|
167
|
+
private onVideoEnded;
|
|
168
|
+
private handleVmapAdBreak;
|
|
166
169
|
private scheduleAdStopCountdown;
|
|
167
170
|
private clearAdStopTimer;
|
|
168
171
|
private ensureAdStoppedByTimer;
|