stormcloud-video-player 0.3.60 → 0.3.61

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,4 @@
1
- import { I as ImaController } from '../types-Vj55FghO.cjs';
1
+ import { I as ImaController } from '../types-XKUJJhlG.cjs';
2
2
  import Hls from 'hls.js';
3
3
 
4
4
  declare function createHlsAdPlayer(contentVideo: HTMLVideoElement, options?: {
package/lib/sdk/ima.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as ImaController } from '../types-Vj55FghO.cjs';
1
+ import { I as ImaController } from '../types-XKUJJhlG.cjs';
2
2
 
3
3
  declare global {
4
4
  interface Window {
@@ -76,19 +76,28 @@ interface ClientInfo {
76
76
  referrer: string;
77
77
  visibilityState: string;
78
78
  }
79
+ interface PlayerAnalyticsContext {
80
+ inputStreamType?: string;
81
+ }
79
82
  interface AdDetectInfo {
80
- source: string;
83
+ source: "scte35";
81
84
  durationSeconds?: number;
82
85
  ptsSeconds?: number;
83
86
  detectedAtFragmentSn?: number;
84
87
  timestamp: string;
85
88
  }
86
- type AdTrackingSource = "prebid" | "ima" | "hls";
87
89
  interface AdLoadedInfo {
88
- source: AdTrackingSource;
90
+ source: "vast" | "ima" | "hls";
89
91
  vastUrl?: string;
90
92
  durationSeconds?: number;
91
93
  timestamp: string;
92
94
  }
95
+ interface AdImpressionInfo {
96
+ source: "vast" | "ima" | "hls";
97
+ adIndex: number;
98
+ adUrl?: string;
99
+ durationSeconds?: number;
100
+ timestamp: string;
101
+ }
93
102
 
94
- export type { AdTrackingSource as A, ClientInfo as C, ImaController as I, StormcloudVideoPlayerConfig as S, AdDetectInfo as a, AdLoadedInfo as b };
103
+ export type { AdDetectInfo as A, ClientInfo as C, ImaController as I, PlayerAnalyticsContext as P, StormcloudVideoPlayerConfig as S, AdImpressionInfo as a, AdLoadedInfo as b };