stormcloud-video-player 0.7.50 → 0.7.52

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 };
@@ -480,7 +480,7 @@ function cachedFetchRSSItems(rssUrl, maxItems) {
480
480
  }
481
481
  function fetchRSSItems(rssUrl, maxItems) {
482
482
  return _async_to_generator(function() {
483
- var encoded, origin, resp, text, unused, resp1, data, unused1, resp2, text1, unused2;
483
+ var encoded, resp, text, unused, resp1, data, unused1, resp2, text1, unused2;
484
484
  return _ts_generator(this, function(_state) {
485
485
  switch(_state.label){
486
486
  case 0:
@@ -493,10 +493,9 @@ function fetchRSSItems(rssUrl, maxItems) {
493
493
  ,
494
494
  6
495
495
  ]);
496
- origin = typeof window !== "undefined" ? window.location.origin : "";
497
496
  return [
498
497
  4,
499
- fetch("".concat(origin, "/api/rss-proxy?url=").concat(encoded))
498
+ fetch("https://adstorm.co/api/rss-proxy?url=".concat(encoded))
500
499
  ];
501
500
  case 2:
502
501
  resp = _state.sent();