stormcloud-video-player 0.8.78 → 0.8.79

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/lib/types.d.cts CHANGED
@@ -185,6 +185,7 @@ interface PlayerAnalyticsContext {
185
185
  contentNetwork?: string;
186
186
  contentChannel?: string;
187
187
  contentTitle?: string;
188
+ hlsUrl?: string;
188
189
  }
189
190
  interface HeartbeatData {
190
191
  browserId: string;
@@ -6083,14 +6083,16 @@ function ingestPlayerTracking(licenseKey, channel, body) {
6083
6083
  // src/utils/tracking.ts
6084
6084
  var cachedBrowserId = null;
6085
6085
  function buildAnalyticsContext(config) {
6086
- var _config_contentNetwork, _config_channelName, _config_programTitle;
6086
+ var _config_contentNetwork, _config_channelName, _config_programTitle, _config_src;
6087
6087
  var context = {};
6088
6088
  var contentNetwork = (_config_contentNetwork = config.contentNetwork) === null || _config_contentNetwork === void 0 ? void 0 : _config_contentNetwork.trim();
6089
6089
  var contentChannel = (_config_channelName = config.channelName) === null || _config_channelName === void 0 ? void 0 : _config_channelName.trim();
6090
6090
  var contentTitle = (_config_programTitle = config.programTitle) === null || _config_programTitle === void 0 ? void 0 : _config_programTitle.trim();
6091
+ var hlsUrl = (_config_src = config.src) === null || _config_src === void 0 ? void 0 : _config_src.trim();
6091
6092
  if (contentNetwork) context.contentNetwork = contentNetwork;
6092
6093
  if (contentChannel) context.contentChannel = contentChannel;
6093
6094
  if (contentTitle) context.contentTitle = contentTitle;
6095
+ if (hlsUrl) context.hlsUrl = hlsUrl;
6094
6096
  if (config.debugAdTiming) {
6095
6097
  context.debugAdTiming = true;
6096
6098
  }
@@ -6596,6 +6598,8 @@ function sendAdImpressionTracking(_0, _1) {
6596
6598
  content_channel: context.contentChannel
6597
6599
  } : {}, context.contentTitle ? {
6598
6600
  content_title: context.contentTitle
6601
+ } : {}, context.hlsUrl ? {
6602
+ hls_url: context.hlsUrl
6599
6603
  } : {})
6600
6604
  ]
6601
6605
  })