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/dist/stormcloud-vp.min.js +1 -1
- package/lib/StormcloudPlayer.cjs +5 -1
- package/lib/StormcloudPlayer.cjs.map +1 -1
- package/lib/index.cjs +5 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +5 -1
- package/lib/index.js.map +1 -1
- package/lib/player/AdBreakOrchestrator.cjs +5 -1
- package/lib/player/AdBreakOrchestrator.cjs.map +1 -1
- package/lib/player/AdConfigManager.cjs +3 -1
- package/lib/player/AdConfigManager.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +5 -1
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +5 -1
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +5 -1
- package/lib/players/index.cjs.map +1 -1
- package/lib/types.d.cts +1 -0
- package/lib/ui/StormcloudVideoPlayer.cjs +5 -1
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/utils/tracking.cjs +5 -1
- package/lib/utils/tracking.cjs.map +1 -1
- package/lib/utils/tracking.d.cts +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -184,6 +184,7 @@ interface PlayerAnalyticsContext {
|
|
|
184
184
|
contentNetwork?: string;
|
|
185
185
|
contentChannel?: string;
|
|
186
186
|
contentTitle?: string;
|
|
187
|
+
hlsUrl?: string;
|
|
187
188
|
}
|
|
188
189
|
interface HeartbeatData {
|
|
189
190
|
browserId: string;
|
|
@@ -4066,7 +4067,7 @@ declare const IS_SAFARI: boolean;
|
|
|
4066
4067
|
declare const SUPPORTS_HLS: () => boolean;
|
|
4067
4068
|
declare const SUPPORTS_DASH: () => boolean;
|
|
4068
4069
|
|
|
4069
|
-
declare function buildAnalyticsContext(config: Pick<StormcloudVideoPlayerConfig, "debugAdTiming" | "isLiveStream" | "contentNetwork" | "channelName" | "programTitle">): PlayerAnalyticsContext;
|
|
4070
|
+
declare function buildAnalyticsContext(config: Pick<StormcloudVideoPlayerConfig, "debugAdTiming" | "isLiveStream" | "contentNetwork" | "channelName" | "programTitle" | "src">): PlayerAnalyticsContext;
|
|
4070
4071
|
declare function getClientInfo(): ClientInfo;
|
|
4071
4072
|
declare function getBrowserID(clientInfo: ClientInfo): Promise<string>;
|
|
4072
4073
|
type PlayerMetricFlags = {
|
package/lib/index.js
CHANGED
|
@@ -6102,14 +6102,16 @@ function ingestPlayerTracking(licenseKey, channel, body) {
|
|
|
6102
6102
|
// src/utils/tracking.ts
|
|
6103
6103
|
var cachedBrowserId = null;
|
|
6104
6104
|
function buildAnalyticsContext(config) {
|
|
6105
|
-
var _config_contentNetwork, _config_channelName, _config_programTitle;
|
|
6105
|
+
var _config_contentNetwork, _config_channelName, _config_programTitle, _config_src;
|
|
6106
6106
|
var context = {};
|
|
6107
6107
|
var contentNetwork = (_config_contentNetwork = config.contentNetwork) === null || _config_contentNetwork === void 0 ? void 0 : _config_contentNetwork.trim();
|
|
6108
6108
|
var contentChannel = (_config_channelName = config.channelName) === null || _config_channelName === void 0 ? void 0 : _config_channelName.trim();
|
|
6109
6109
|
var contentTitle = (_config_programTitle = config.programTitle) === null || _config_programTitle === void 0 ? void 0 : _config_programTitle.trim();
|
|
6110
|
+
var hlsUrl = (_config_src = config.src) === null || _config_src === void 0 ? void 0 : _config_src.trim();
|
|
6110
6111
|
if (contentNetwork) context.contentNetwork = contentNetwork;
|
|
6111
6112
|
if (contentChannel) context.contentChannel = contentChannel;
|
|
6112
6113
|
if (contentTitle) context.contentTitle = contentTitle;
|
|
6114
|
+
if (hlsUrl) context.hlsUrl = hlsUrl;
|
|
6113
6115
|
if (config.debugAdTiming) {
|
|
6114
6116
|
context.debugAdTiming = true;
|
|
6115
6117
|
}
|
|
@@ -6615,6 +6617,8 @@ function sendAdImpressionTracking(_0, _1) {
|
|
|
6615
6617
|
content_channel: context.contentChannel
|
|
6616
6618
|
} : {}, context.contentTitle ? {
|
|
6617
6619
|
content_title: context.contentTitle
|
|
6620
|
+
} : {}, context.hlsUrl ? {
|
|
6621
|
+
hls_url: context.hlsUrl
|
|
6618
6622
|
} : {})
|
|
6619
6623
|
]
|
|
6620
6624
|
})
|