stormcloud-video-player 0.7.50 → 0.7.51

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.
@@ -1,4 +1,5 @@
1
- import { A as AdController } from '../types-CIHDHY7A.cjs';
1
+ import { A as AdController } from '../types-Dobqa8vR.cjs';
2
+ import '../utils/mqttConfig.cjs';
2
3
 
3
4
  interface AdStormPlayerOptions {
4
5
  licenseKey: string;
@@ -1,3 +1,5 @@
1
+ import { MQTTConfig } from './utils/mqttConfig.cjs';
2
+
1
3
  interface StormcloudVideoPlayerConfig {
2
4
  videoElement: HTMLVideoElement;
3
5
  src: string;
@@ -24,6 +26,7 @@ interface StormcloudVideoPlayerConfig {
24
26
  singlePipelineMode?: boolean;
25
27
  projectId?: string;
26
28
  channelId?: number;
29
+ mqttConfig?: Partial<MQTTConfig>;
27
30
  }
28
31
  interface AdController {
29
32
  initialize: () => void;
@@ -78,6 +81,9 @@ interface ClientInfo {
78
81
  referrer: string;
79
82
  visibilityState: string;
80
83
  }
84
+ interface PlayerAnalyticsContext {
85
+ inputStreamType?: string;
86
+ }
81
87
  interface AdDetectInfo {
82
88
  source: "scte35";
83
89
  durationSeconds?: number;
@@ -94,8 +100,9 @@ interface AdLoadedInfo {
94
100
  interface AdImpressionInfo {
95
101
  source: "vast" | "ima" | "hls";
96
102
  adIndex: number;
103
+ adUrl?: string;
97
104
  durationSeconds?: number;
98
105
  timestamp: string;
99
106
  }
100
107
 
101
- export type { AdController as A, ClientInfo as C, StormcloudVideoPlayerConfig as S, AdDetectInfo as a, AdImpressionInfo as b, AdLoadedInfo as c };
108
+ export type { AdController as A, ClientInfo as C, PlayerAnalyticsContext as P, StormcloudVideoPlayerConfig as S, AdDetectInfo as a, AdImpressionInfo as b, AdLoadedInfo as c };