stormcloud-video-player 0.6.10 → 0.6.12
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 +296 -110
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +12 -1
- package/lib/index.d.ts +12 -1
- package/lib/index.js +273 -111
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +262 -108
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +1 -1
- package/lib/players/HlsPlayer.cjs +262 -108
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +262 -108
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/vastAdLayer.d.cts +1 -1
- package/lib/sdk/vastManager.cjs +93 -10
- package/lib/sdk/vastManager.cjs.map +1 -1
- package/lib/sdk/vastManager.d.cts +3 -1
- package/lib/{types-DSKC4ySr.d.cts → types-FjAlGhAL.d.cts} +1 -0
- package/lib/ui/StormcloudVideoPlayer.cjs +266 -110
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.d.cts +1 -1
- package/lib/utils/mqttClient.cjs +174 -0
- package/lib/utils/mqttClient.cjs.map +1 -0
- package/lib/utils/mqttClient.d.cts +9 -0
- package/lib/utils/tracking.cjs +119 -96
- package/lib/utils/tracking.cjs.map +1 -1
- package/lib/utils/tracking.d.cts +3 -2
- package/package.json +2 -1
package/lib/index.d.cts
CHANGED
|
@@ -36,6 +36,7 @@ interface StormcloudVideoPlayerConfig {
|
|
|
36
36
|
disableFiller?: boolean;
|
|
37
37
|
adTransitionGapMs?: number;
|
|
38
38
|
singlePipelineMode?: boolean;
|
|
39
|
+
mqttBrokerUrl?: string;
|
|
39
40
|
}
|
|
40
41
|
interface ClientInfo {
|
|
41
42
|
brand: string;
|
|
@@ -3983,6 +3984,14 @@ type PlayerMetricFlags = {
|
|
|
3983
3984
|
declare function sendInitialTracking(licenseKey?: string, context?: PlayerAnalyticsContext): Promise<void>;
|
|
3984
3985
|
declare function sendHeartbeat(licenseKey?: string, context?: PlayerAnalyticsContext, flags?: PlayerMetricFlags): Promise<void>;
|
|
3985
3986
|
|
|
3987
|
+
type MQTTStatus = "disconnected" | "connecting" | "connected" | "error";
|
|
3988
|
+
declare function getMQTTStatus(): MQTTStatus;
|
|
3989
|
+
declare function isMQTTConnected(): boolean;
|
|
3990
|
+
declare function isMQTTConfigured(): boolean;
|
|
3991
|
+
declare function initMQTTClient(url: string, _topicPrefix?: string): void;
|
|
3992
|
+
declare function publishMQTT(topic: string, payload: Record<string, unknown>): boolean;
|
|
3993
|
+
declare function disconnectMQTT(): void;
|
|
3994
|
+
|
|
3986
3995
|
declare function initializePolyfills(): void;
|
|
3987
3996
|
|
|
3988
3997
|
interface NavigatorUAData {
|
|
@@ -4022,6 +4031,8 @@ declare function supportsFeature(feature: string): boolean;
|
|
|
4022
4031
|
|
|
4023
4032
|
interface VastManagerOptions {
|
|
4024
4033
|
debug?: boolean;
|
|
4034
|
+
licenseKey?: string;
|
|
4035
|
+
adstormApiUrl?: string;
|
|
4025
4036
|
}
|
|
4026
4037
|
declare function createVastManager(options?: VastManagerOptions): VastManager;
|
|
4027
4038
|
|
|
@@ -4063,4 +4074,4 @@ interface VastAdLayer {
|
|
|
4063
4074
|
}
|
|
4064
4075
|
declare function createVastAdLayer(contentVideo: HTMLVideoElement, options?: VastAdLayerOptions): VastAdLayer;
|
|
4065
4076
|
|
|
4066
|
-
export { type AdBreak, type AdSchedule, type BaseStormcloudPlayerProps, type BrowserInfo, type ClientInfo, type HeartbeatData, IS_BROWSER, IS_GLOBAL, IS_IOS, IS_SAFARI, type LateJoinPolicy, type OnProgressProps, SUPPORTS_DASH, SUPPORTS_HLS, StormcloudPlayer, StormcloudVideoPlayer, StormcloudVideoPlayerComponent, type StormcloudVideoPlayerConfig, type StormcloudVideoPlayerProps, type TrackingData, type VastAdLayer, type VastAdLayerOptions, type VastAdLayerOptionsUpdate, type VastBidResponse, type VastManager, type VastManagerOptions, canPlay, createStormcloudPlayer, createVastAdLayer, createVastManager, StormcloudVideoPlayerComponent as default, detectBrowser, getBrowserConfigOverrides, getBrowserID, getClientInfo, initializePolyfills, isMediaStream, lazy, logBrowserInfo, merge, omit, parseQuery, players, randomString, sendHeartbeat, sendInitialTracking, supportsFeature, supportsModernJS, supportsWebKitPresentationMode };
|
|
4077
|
+
export { type AdBreak, type AdSchedule, type BaseStormcloudPlayerProps, type BrowserInfo, type ClientInfo, type HeartbeatData, IS_BROWSER, IS_GLOBAL, IS_IOS, IS_SAFARI, type LateJoinPolicy, type MQTTStatus, type OnProgressProps, SUPPORTS_DASH, SUPPORTS_HLS, StormcloudPlayer, StormcloudVideoPlayer, StormcloudVideoPlayerComponent, type StormcloudVideoPlayerConfig, type StormcloudVideoPlayerProps, type TrackingData, type VastAdLayer, type VastAdLayerOptions, type VastAdLayerOptionsUpdate, type VastBidResponse, type VastManager, type VastManagerOptions, canPlay, createStormcloudPlayer, createVastAdLayer, createVastManager, StormcloudVideoPlayerComponent as default, detectBrowser, disconnectMQTT, getBrowserConfigOverrides, getBrowserID, getClientInfo, getMQTTStatus, initMQTTClient, initializePolyfills, isMQTTConfigured, isMQTTConnected, isMediaStream, lazy, logBrowserInfo, merge, omit, parseQuery, players, publishMQTT, randomString, sendHeartbeat, sendInitialTracking, supportsFeature, supportsModernJS, supportsWebKitPresentationMode };
|
package/lib/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ interface StormcloudVideoPlayerConfig {
|
|
|
36
36
|
disableFiller?: boolean;
|
|
37
37
|
adTransitionGapMs?: number;
|
|
38
38
|
singlePipelineMode?: boolean;
|
|
39
|
+
mqttBrokerUrl?: string;
|
|
39
40
|
}
|
|
40
41
|
interface ClientInfo {
|
|
41
42
|
brand: string;
|
|
@@ -3983,6 +3984,14 @@ type PlayerMetricFlags = {
|
|
|
3983
3984
|
declare function sendInitialTracking(licenseKey?: string, context?: PlayerAnalyticsContext): Promise<void>;
|
|
3984
3985
|
declare function sendHeartbeat(licenseKey?: string, context?: PlayerAnalyticsContext, flags?: PlayerMetricFlags): Promise<void>;
|
|
3985
3986
|
|
|
3987
|
+
type MQTTStatus = "disconnected" | "connecting" | "connected" | "error";
|
|
3988
|
+
declare function getMQTTStatus(): MQTTStatus;
|
|
3989
|
+
declare function isMQTTConnected(): boolean;
|
|
3990
|
+
declare function isMQTTConfigured(): boolean;
|
|
3991
|
+
declare function initMQTTClient(url: string, _topicPrefix?: string): void;
|
|
3992
|
+
declare function publishMQTT(topic: string, payload: Record<string, unknown>): boolean;
|
|
3993
|
+
declare function disconnectMQTT(): void;
|
|
3994
|
+
|
|
3986
3995
|
declare function initializePolyfills(): void;
|
|
3987
3996
|
|
|
3988
3997
|
interface NavigatorUAData {
|
|
@@ -4022,6 +4031,8 @@ declare function supportsFeature(feature: string): boolean;
|
|
|
4022
4031
|
|
|
4023
4032
|
interface VastManagerOptions {
|
|
4024
4033
|
debug?: boolean;
|
|
4034
|
+
licenseKey?: string;
|
|
4035
|
+
adstormApiUrl?: string;
|
|
4025
4036
|
}
|
|
4026
4037
|
declare function createVastManager(options?: VastManagerOptions): VastManager;
|
|
4027
4038
|
|
|
@@ -4063,4 +4074,4 @@ interface VastAdLayer {
|
|
|
4063
4074
|
}
|
|
4064
4075
|
declare function createVastAdLayer(contentVideo: HTMLVideoElement, options?: VastAdLayerOptions): VastAdLayer;
|
|
4065
4076
|
|
|
4066
|
-
export { type AdBreak, type AdSchedule, type BaseStormcloudPlayerProps, type BrowserInfo, type ClientInfo, type HeartbeatData, IS_BROWSER, IS_GLOBAL, IS_IOS, IS_SAFARI, type LateJoinPolicy, type OnProgressProps, SUPPORTS_DASH, SUPPORTS_HLS, StormcloudPlayer, StormcloudVideoPlayer, StormcloudVideoPlayerComponent, type StormcloudVideoPlayerConfig, type StormcloudVideoPlayerProps, type TrackingData, type VastAdLayer, type VastAdLayerOptions, type VastAdLayerOptionsUpdate, type VastBidResponse, type VastManager, type VastManagerOptions, canPlay, createStormcloudPlayer, createVastAdLayer, createVastManager, StormcloudVideoPlayerComponent as default, detectBrowser, getBrowserConfigOverrides, getBrowserID, getClientInfo, initializePolyfills, isMediaStream, lazy, logBrowserInfo, merge, omit, parseQuery, players, randomString, sendHeartbeat, sendInitialTracking, supportsFeature, supportsModernJS, supportsWebKitPresentationMode };
|
|
4077
|
+
export { type AdBreak, type AdSchedule, type BaseStormcloudPlayerProps, type BrowserInfo, type ClientInfo, type HeartbeatData, IS_BROWSER, IS_GLOBAL, IS_IOS, IS_SAFARI, type LateJoinPolicy, type MQTTStatus, type OnProgressProps, SUPPORTS_DASH, SUPPORTS_HLS, StormcloudPlayer, StormcloudVideoPlayer, StormcloudVideoPlayerComponent, type StormcloudVideoPlayerConfig, type StormcloudVideoPlayerProps, type TrackingData, type VastAdLayer, type VastAdLayerOptions, type VastAdLayerOptionsUpdate, type VastBidResponse, type VastManager, type VastManagerOptions, canPlay, createStormcloudPlayer, createVastAdLayer, createVastManager, StormcloudVideoPlayerComponent as default, detectBrowser, disconnectMQTT, getBrowserConfigOverrides, getBrowserID, getClientInfo, getMQTTStatus, initMQTTClient, initializePolyfills, isMQTTConfigured, isMQTTConnected, isMediaStream, lazy, logBrowserInfo, merge, omit, parseQuery, players, publishMQTT, randomString, sendHeartbeat, sendInitialTracking, supportsFeature, supportsModernJS, supportsWebKitPresentationMode };
|