stormcloud-video-player 0.8.80 → 0.8.82

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.
Files changed (64) hide show
  1. package/dist/stormcloud-vp.min.js +2 -2
  2. package/lib/Player.d.cts +1 -0
  3. package/lib/StormcloudPlayer.cjs +527 -142
  4. package/lib/StormcloudPlayer.cjs.map +1 -1
  5. package/lib/StormcloudPlayer.d.cts +1 -0
  6. package/lib/index.cjs +553 -143
  7. package/lib/index.cjs.map +1 -1
  8. package/lib/index.d.cts +1 -0
  9. package/lib/index.d.ts +33 -5
  10. package/lib/index.js +553 -143
  11. package/lib/index.js.map +1 -1
  12. package/lib/player/AdBreakOrchestrator.cjs +100 -12
  13. package/lib/player/AdBreakOrchestrator.cjs.map +1 -1
  14. package/lib/player/AdBreakOrchestrator.d.cts +2 -0
  15. package/lib/player/AdConfigManager.cjs +413 -123
  16. package/lib/player/AdConfigManager.cjs.map +1 -1
  17. package/lib/player/AdConfigManager.d.cts +2 -0
  18. package/lib/player/AdTimingService.d.cts +1 -0
  19. package/lib/player/EdgePodRequest.d.cts +1 -0
  20. package/lib/player/FloorLadder.d.cts +1 -0
  21. package/lib/player/HlsEngine.d.cts +1 -0
  22. package/lib/player/OptimizedPodRequest.cjs +17 -5
  23. package/lib/player/OptimizedPodRequest.cjs.map +1 -1
  24. package/lib/player/PlayerControls.d.cts +1 -0
  25. package/lib/player/Scte35CueManager.d.cts +1 -0
  26. package/lib/player/Scte35Parser.d.cts +1 -0
  27. package/lib/player/StormcloudVideoPlayer.cjs +527 -142
  28. package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
  29. package/lib/player/StormcloudVideoPlayer.d.cts +5 -4
  30. package/lib/player/playerTypes.d.cts +1 -0
  31. package/lib/players/HlsPlayer.cjs +527 -142
  32. package/lib/players/HlsPlayer.cjs.map +1 -1
  33. package/lib/players/HlsPlayer.d.cts +1 -0
  34. package/lib/players/index.cjs +527 -142
  35. package/lib/players/index.cjs.map +1 -1
  36. package/lib/props.d.cts +1 -0
  37. package/lib/sdk/hlsAdPlayer.cjs +13 -0
  38. package/lib/sdk/hlsAdPlayer.cjs.map +1 -1
  39. package/lib/sdk/hlsAdPlayer.d.cts +1 -0
  40. package/lib/types.d.cts +8 -1
  41. package/lib/ui/StormcloudVideoPlayer.cjs +553 -143
  42. package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
  43. package/lib/ui/StormcloudVideoPlayer.d.cts +1 -0
  44. package/lib/utils/__tests__/adSignals.test.cjs +174 -15
  45. package/lib/utils/__tests__/adSignals.test.cjs.map +1 -1
  46. package/lib/utils/browserCompat.cjs +33 -0
  47. package/lib/utils/browserCompat.cjs.map +1 -1
  48. package/lib/utils/browserCompat.d.cts +3 -1
  49. package/lib/utils/contentMetadata.cjs +132 -5
  50. package/lib/utils/contentMetadata.cjs.map +1 -1
  51. package/lib/utils/contentMetadata.d.cts +39 -1
  52. package/lib/utils/deviceInfo.cjs +24 -4
  53. package/lib/utils/deviceInfo.cjs.map +1 -1
  54. package/lib/utils/deviceInfo.d.cts +3 -0
  55. package/lib/utils/partnerSignals.cjs +296 -0
  56. package/lib/utils/partnerSignals.cjs.map +1 -0
  57. package/lib/utils/partnerSignals.d.cts +12 -0
  58. package/lib/utils/tracking.cjs +24 -4
  59. package/lib/utils/tracking.cjs.map +1 -1
  60. package/lib/utils/tracking.d.cts +1 -0
  61. package/lib/utils/vastMacros.cjs +51 -1
  62. package/lib/utils/vastMacros.cjs.map +1 -1
  63. package/lib/utils/vastMacros.d.cts +20 -0
  64. package/package.json +1 -1
@@ -4,6 +4,7 @@ import { StormcloudVideoPlayerConfig } from '../types.cjs';
4
4
  import '../player/FloorLadder.cjs';
5
5
  import '../utils/deviceInfo.cjs';
6
6
  import '../utils/adIdentity.cjs';
7
+ import '../utils/contentMetadata.cjs';
7
8
  import '../player/OptimizedPodRequest.cjs';
8
9
 
9
10
  type StormcloudVideoPlayerProps = Omit<StormcloudVideoPlayerConfig, "videoElement"> & React.VideoHTMLAttributes<HTMLVideoElement> & {
@@ -23258,6 +23258,44 @@ var BRIDGE_KEYS = {
23258
23258
  contentNetwork: [
23259
23259
  "contentNetwork",
23260
23260
  "ct_ne"
23261
+ ],
23262
+ contentType: [
23263
+ "contentType",
23264
+ "ctt"
23265
+ ],
23266
+ contentCategory: [
23267
+ "contentCategory",
23268
+ "ctc"
23269
+ ],
23270
+ contentGenre: [
23271
+ "contentGenre",
23272
+ "ctgr"
23273
+ ],
23274
+ contentLanguage: [
23275
+ "contentLanguage",
23276
+ "ctlg"
23277
+ ],
23278
+ contentDuration: [
23279
+ "contentDuration",
23280
+ "ctd"
23281
+ ],
23282
+ contentSeason: [
23283
+ "contentSeason",
23284
+ "cts"
23285
+ ],
23286
+ contentEpisode: [
23287
+ "contentEpisode",
23288
+ "cte"
23289
+ ],
23290
+ contentRating: [
23291
+ "contentRating",
23292
+ "ctr",
23293
+ "programRating",
23294
+ "rating"
23295
+ ],
23296
+ contentId: [
23297
+ "contentId",
23298
+ "ctid"
23261
23299
  ]
23262
23300
  };
23263
23301
  function sanitizeContentValue(value) {
@@ -23265,9 +23303,30 @@ function sanitizeContentValue(value) {
23265
23303
  var cleaned = value.replace(/[\u0000-\u001f\u007f]/g, " ").replace(/\s+/g, " ").trim();
23266
23304
  if (!cleaned) return void 0;
23267
23305
  if (/^(\[[^\]]*\]|\{[^}]*\}|%%[^%]*%%|\$\{[^}]+\})$/.test(cleaned)) return void 0;
23268
- if (/^(unknown|null|undefined|none|n\/a|-)$/i.test(cleaned)) return void 0;
23306
+ if (/^(unknown|null|undefined|none|n\/a|-|tbd|tba|to be (announced|determined))$/i.test(cleaned)) {
23307
+ return void 0;
23308
+ }
23269
23309
  return cleaned.length > MAX_CONTENT_VALUE_LENGTH ? cleaned.slice(0, MAX_CONTENT_VALUE_LENGTH).trim() : cleaned;
23270
23310
  }
23311
+ function sanitizeContentScalar(value) {
23312
+ if (typeof value === "number") {
23313
+ return Number.isFinite(value) ? String(value) : void 0;
23314
+ }
23315
+ return sanitizeContentValue(value);
23316
+ }
23317
+ function normalizeContentLanguage(value) {
23318
+ var cleaned = sanitizeContentValue(value);
23319
+ if (!cleaned) return void 0;
23320
+ var match = cleaned.match(/^([A-Za-z]{2})(?:[-_][A-Za-z0-9]{1,8})*$/);
23321
+ return match && match[1] ? match[1].toLowerCase() : void 0;
23322
+ }
23323
+ function normalizeContentDuration(value) {
23324
+ var raw = sanitizeContentScalar(value);
23325
+ if (raw == null || !/^-?\d+(\.\d+)?$/.test(raw)) return void 0;
23326
+ var seconds = Number(raw);
23327
+ if (seconds === -1) return -1;
23328
+ return seconds > 0 ? Math.round(seconds) : void 0;
23329
+ }
23271
23330
  function bridgeSources() {
23272
23331
  if (typeof window === "undefined") return [];
23273
23332
  var w2 = window;
@@ -23277,7 +23336,7 @@ function bridgeSources() {
23277
23336
  w2.stormcloudCtv
23278
23337
  ].filter(Boolean);
23279
23338
  }
23280
- function readBridgeContentValue(keys2) {
23339
+ function readBridgeValue(keys2, sanitize) {
23281
23340
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
23282
23341
  try {
23283
23342
  for(var _iterator = bridgeSources()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -23293,8 +23352,8 @@ function readBridgeContentValue(keys2) {
23293
23352
  } catch (unused) {
23294
23353
  value = void 0;
23295
23354
  }
23296
- var sanitized = sanitizeContentValue(value);
23297
- if (sanitized) return sanitized;
23355
+ var sanitized = sanitize(value);
23356
+ if (sanitized != null) return sanitized;
23298
23357
  }
23299
23358
  } catch (err) {
23300
23359
  _didIteratorError1 = true;
@@ -23327,17 +23386,48 @@ function readBridgeContentValue(keys2) {
23327
23386
  }
23328
23387
  return void 0;
23329
23388
  }
23389
+ function readBridgeContentValue(keys2) {
23390
+ return readBridgeValue(keys2, sanitizeContentValue);
23391
+ }
23330
23392
  function resolveContentMetadata(config2) {
23331
- var _sanitizeContentValue, _sanitizeContentValue1, _sanitizeContentValue2;
23393
+ var _sanitizeContentValue, _sanitizeContentValue1, _sanitizeContentValue2, _config2_contentDetails, _sanitizeContentValue3, _sanitizeContentValue4, _sanitizeContentValue5, _normalizeContentLanguage, _normalizeContentDuration, _sanitizeContentScalar, _sanitizeContentScalar1, _sanitizeContentValue6, _sanitizeContentValue7;
23332
23394
  var channelName = (_sanitizeContentValue = sanitizeContentValue(config2.channelName)) !== null && _sanitizeContentValue !== void 0 ? _sanitizeContentValue : readBridgeContentValue(BRIDGE_KEYS.channelName);
23333
23395
  var programTitle = (_sanitizeContentValue1 = sanitizeContentValue(config2.programTitle)) !== null && _sanitizeContentValue1 !== void 0 ? _sanitizeContentValue1 : readBridgeContentValue(BRIDGE_KEYS.programTitle);
23334
23396
  var contentNetwork = (_sanitizeContentValue2 = sanitizeContentValue(config2.contentNetwork)) !== null && _sanitizeContentValue2 !== void 0 ? _sanitizeContentValue2 : readBridgeContentValue(BRIDGE_KEYS.contentNetwork);
23397
+ var details = (_config2_contentDetails = config2.contentDetails) !== null && _config2_contentDetails !== void 0 ? _config2_contentDetails : {};
23398
+ var contentType = (_sanitizeContentValue3 = sanitizeContentValue(details.contentType)) !== null && _sanitizeContentValue3 !== void 0 ? _sanitizeContentValue3 : readBridgeContentValue(BRIDGE_KEYS.contentType);
23399
+ var contentCategory = (_sanitizeContentValue4 = sanitizeContentValue(details.category)) !== null && _sanitizeContentValue4 !== void 0 ? _sanitizeContentValue4 : readBridgeContentValue(BRIDGE_KEYS.contentCategory);
23400
+ var contentGenre = (_sanitizeContentValue5 = sanitizeContentValue(details.genre)) !== null && _sanitizeContentValue5 !== void 0 ? _sanitizeContentValue5 : readBridgeContentValue(BRIDGE_KEYS.contentGenre);
23401
+ var contentLanguage = (_normalizeContentLanguage = normalizeContentLanguage(details.language)) !== null && _normalizeContentLanguage !== void 0 ? _normalizeContentLanguage : readBridgeValue(BRIDGE_KEYS.contentLanguage, normalizeContentLanguage);
23402
+ var contentDurationSeconds = (_normalizeContentDuration = normalizeContentDuration(details.durationSeconds)) !== null && _normalizeContentDuration !== void 0 ? _normalizeContentDuration : readBridgeValue(BRIDGE_KEYS.contentDuration, normalizeContentDuration);
23403
+ var contentSeason = (_sanitizeContentScalar = sanitizeContentScalar(details.season)) !== null && _sanitizeContentScalar !== void 0 ? _sanitizeContentScalar : readBridgeValue(BRIDGE_KEYS.contentSeason, sanitizeContentScalar);
23404
+ var contentEpisode = (_sanitizeContentScalar1 = sanitizeContentScalar(details.episode)) !== null && _sanitizeContentScalar1 !== void 0 ? _sanitizeContentScalar1 : readBridgeValue(BRIDGE_KEYS.contentEpisode, sanitizeContentScalar);
23405
+ var contentRating = (_sanitizeContentValue6 = sanitizeContentValue(details.rating)) !== null && _sanitizeContentValue6 !== void 0 ? _sanitizeContentValue6 : readBridgeContentValue(BRIDGE_KEYS.contentRating);
23406
+ var contentId = (_sanitizeContentValue7 = sanitizeContentValue(details.contentId)) !== null && _sanitizeContentValue7 !== void 0 ? _sanitizeContentValue7 : readBridgeContentValue(BRIDGE_KEYS.contentId);
23335
23407
  return _object_spread({}, channelName ? {
23336
23408
  channelName: channelName
23337
23409
  } : {}, programTitle ? {
23338
23410
  programTitle: programTitle
23339
23411
  } : {}, contentNetwork ? {
23340
23412
  contentNetwork: contentNetwork
23413
+ } : {}, contentType ? {
23414
+ contentType: contentType
23415
+ } : {}, contentCategory ? {
23416
+ contentCategory: contentCategory
23417
+ } : {}, contentGenre ? {
23418
+ contentGenre: contentGenre
23419
+ } : {}, contentLanguage ? {
23420
+ contentLanguage: contentLanguage
23421
+ } : {}, contentDurationSeconds != null ? {
23422
+ contentDurationSeconds: contentDurationSeconds
23423
+ } : {}, contentSeason ? {
23424
+ contentSeason: contentSeason
23425
+ } : {}, contentEpisode ? {
23426
+ contentEpisode: contentEpisode
23427
+ } : {}, contentRating ? {
23428
+ contentRating: contentRating
23429
+ } : {}, contentId ? {
23430
+ contentId: contentId
23341
23431
  } : {});
23342
23432
  }
23343
23433
  function appendMissingContentParams(url, meta) {
@@ -23449,6 +23539,11 @@ function readBridge(keys2) {
23449
23539
  }
23450
23540
  return void 0;
23451
23541
  }
23542
+ function makeForCategory(category) {
23543
+ if (category === "LG TV" || category === "LG Set-Top Box") return "LG";
23544
+ if (category === "Samsung TV") return "Samsung";
23545
+ return void 0;
23546
+ }
23452
23547
  function normalizeCategory(value) {
23453
23548
  var v2 = cleanString(value);
23454
23549
  if (!v2) return void 0;
@@ -23596,7 +23691,7 @@ function primeDeviceInfo() {
23596
23691
  return primePromise;
23597
23692
  }
23598
23693
  function getDeviceInfo() {
23599
- var _cleanString, _cleanString1, _ref, _cleanString2, _ref1, _cleanString3, _ref2, _normalizeCategory;
23694
+ var _cleanString, _cleanString1, _ref, _cleanString2, _ref1, _cleanString3, _ref2, _normalizeCategory, _ref3, _cleanString4, _cleanString5;
23600
23695
  var platform = platformCache !== null && platformCache !== void 0 ? platformCache : computePlatformInfo();
23601
23696
  if (primePromise && !platformCache) {} else {
23602
23697
  platformCache = platform;
@@ -23619,7 +23714,14 @@ function getDeviceInfo() {
23619
23714
  ]),
23620
23715
  category: normalizeCategory(readBridge([
23621
23716
  "deviceCategory"
23622
- ]))
23717
+ ])),
23718
+ make: readBridge([
23719
+ "deviceMake"
23720
+ ]),
23721
+ hardwareVersion: readBridge([
23722
+ "deviceHardwareVersion",
23723
+ "hardwareVersion"
23724
+ ])
23623
23725
  };
23624
23726
  var terminalId = (_cleanString = cleanString(host.terminalId)) !== null && _cleanString !== void 0 ? _cleanString : bridge.terminalId;
23625
23727
  var hostInternalId = (_cleanString1 = cleanString(host.internalDeviceId)) !== null && _cleanString1 !== void 0 ? _cleanString1 : bridge.internalDeviceId;
@@ -23632,7 +23734,9 @@ function getDeviceInfo() {
23632
23734
  bridge.internalDeviceId,
23633
23735
  bridge.model,
23634
23736
  bridge.firmware,
23635
- bridge.category
23737
+ bridge.category,
23738
+ bridge.make,
23739
+ bridge.hardwareVersion
23636
23740
  ];
23637
23741
  if (bridgeValues.some(function(v2) {
23638
23742
  return v2 !== void 0;
@@ -23640,12 +23744,18 @@ function getDeviceInfo() {
23640
23744
  if (hostDeviceInfo) sources.unshift("host");
23641
23745
  var internalDeviceId = hostInternalId !== null && hostInternalId !== void 0 ? hostInternalId : platform.internalDeviceId;
23642
23746
  var internalDeviceIdSource = hostInternalId ? "host" : platform.internalDeviceIdSource;
23747
+ var make = (_ref3 = (_cleanString4 = cleanString(host.make, 40)) !== null && _cleanString4 !== void 0 ? _cleanString4 : bridge.make) !== null && _ref3 !== void 0 ? _ref3 : makeForCategory(category);
23748
+ var hardwareVersion = (_cleanString5 = cleanString(host.hardwareVersion, 40)) !== null && _cleanString5 !== void 0 ? _cleanString5 : bridge.hardwareVersion;
23643
23749
  var sonifiModel = model && category === "Samsung TV" && !/^SAMSUNG-IPTV-/i.test(model) ? "SAMSUNG-IPTV-".concat(model) : model;
23644
23750
  return _object_spread_props(_object_spread({
23645
23751
  category: category,
23646
23752
  categoryCode: CATEGORY_CODES[category]
23647
- }, model ? {
23753
+ }, make ? {
23754
+ make: make
23755
+ } : {}, model ? {
23648
23756
  model: model
23757
+ } : {}, hardwareVersion ? {
23758
+ hardwareVersion: hardwareVersion
23649
23759
  } : {}, sonifiModel ? {
23650
23760
  sonifiModel: sonifiModel
23651
23761
  } : {}, firmware ? {
@@ -24086,24 +24196,24 @@ function readNativeBridgeSignals() {
24086
24196
  try {
24087
24197
  for(var _iterator = getNativeBridgeSources()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
24088
24198
  var source = _step.value;
24089
- var contentUrl = readBridgeValue(source, [
24199
+ var contentUrl = readBridgeValue2(source, [
24090
24200
  "contentUrl",
24091
24201
  "url",
24092
24202
  "videoUrl",
24093
24203
  "canonicalUrl"
24094
24204
  ]) || void 0;
24095
- var appId = readBridgeValue(source, [
24205
+ var appId = readBridgeValue2(source, [
24096
24206
  "appId",
24097
24207
  "msid",
24098
24208
  "applicationId",
24099
24209
  "packageName"
24100
24210
  ]) || void 0;
24101
- var appName = readBridgeValue(source, [
24211
+ var appName = readBridgeValue2(source, [
24102
24212
  "appName",
24103
24213
  "an",
24104
24214
  "applicationName"
24105
24215
  ]) || void 0;
24106
- var deviceId = readBridgeValue(source, [
24216
+ var deviceId = readBridgeValue2(source, [
24107
24217
  "rdid",
24108
24218
  "ifa",
24109
24219
  "advertisingId",
@@ -24117,7 +24227,7 @@ function readNativeBridgeSignals() {
24117
24227
  "aaid"
24118
24228
  ]) || void 0;
24119
24229
  if (!contentUrl && !deviceId && !appId && !appName) continue;
24120
- var deviceIdType = readBridgeValue(source, [
24230
+ var deviceIdType = readBridgeValue2(source, [
24121
24231
  "idtype",
24122
24232
  "deviceIdType",
24123
24233
  "advertisingIdType",
@@ -24174,7 +24284,7 @@ function getNativeBridgeSources() {
24174
24284
  window.amazon
24175
24285
  ].filter(Boolean);
24176
24286
  }
24177
- function readBridgeValue(source, keys2) {
24287
+ function readBridgeValue2(source, keys2) {
24178
24288
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
24179
24289
  try {
24180
24290
  for(var _iterator = keys2[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -24302,6 +24412,33 @@ function normalizeBoolean(value) {
24302
24412
  }
24303
24413
  return void 0;
24304
24414
  }
24415
+ // src/utils/partnerSignals.ts
24416
+ var PLATFORM_IFA_TYPES = /* @__PURE__ */ new Set([
24417
+ "aaid",
24418
+ "adid",
24419
+ "afai",
24420
+ "idfa",
24421
+ "lgudid",
24422
+ "msai",
24423
+ "rida",
24424
+ "tifa",
24425
+ "tvos",
24426
+ "vaid",
24427
+ "vida"
24428
+ ]);
24429
+ function toIabIfaType(deviceIdType, source) {
24430
+ if (!deviceIdType) return void 0;
24431
+ var type3 = deviceIdType.trim().toLowerCase();
24432
+ if (source === "generated") return "sessionid";
24433
+ if (PLATFORM_IFA_TYPES.has(type3)) return type3;
24434
+ if (source === "platform") return "dpid";
24435
+ return "ppid";
24436
+ }
24437
+ function playbackMethodCode(autoPlay, muted) {
24438
+ if (autoPlay === false) return 3;
24439
+ if (autoPlay !== true || muted == null) return void 0;
24440
+ return muted ? 2 : 1;
24441
+ }
24305
24442
  // src/utils/vastMacros.ts
24306
24443
  var INVALID_VAST_PARAM_KEY = /^\s|\s$/;
24307
24444
  function removeBrokenAppNameOrphans(params, appName) {
@@ -24413,6 +24550,8 @@ function resolveScvpMacroValues(ctx) {
24413
24550
  set3("RDID", deviceId);
24414
24551
  set3("IDTYPE", deviceIdType);
24415
24552
  set3("IS-LAT", (_toFlag = toFlag(ctx.limitAdTracking)) !== null && _toFlag !== void 0 ? _toFlag : "0");
24553
+ set3("IFA", deviceId);
24554
+ set3("IFA-TYPE", toIabIfaType(deviceIdType, ctx.deviceIdSource));
24416
24555
  }
24417
24556
  set3("SID", ctx.sessionId);
24418
24557
  set3("DTH", ctx.deviceTypeHint);
@@ -24430,6 +24569,26 @@ function resolveScvpMacroValues(ctx) {
24430
24569
  set3("GDPR", (_ctx_consent = ctx.consent) === null || _ctx_consent === void 0 ? void 0 : _ctx_consent.gdpr);
24431
24570
  set3("GDPR-CONSENT", (_ctx_consent1 = ctx.consent) === null || _ctx_consent1 === void 0 ? void 0 : _ctx_consent1.gdprConsent);
24432
24571
  set3("US-PRIVACY", (_ctx_consent2 = ctx.consent) === null || _ctx_consent2 === void 0 ? void 0 : _ctx_consent2.usPrivacy);
24572
+ set3("PLAYER-WIDTH", ctx.playerWidth);
24573
+ set3("PLAYER-HEIGHT", ctx.playerHeight);
24574
+ set3("TIMESTAMP", ctx.timestamp);
24575
+ set3("LIVE", toFlag(ctx.isLive));
24576
+ set3("VPMT", playbackMethodCode(ctx.isCtv ? true : ctx.adWillAutoPlay, ctx.adWillPlayMuted));
24577
+ set3("DEVICE-MAKE", ctx.deviceMake);
24578
+ set3("DEVICE-MODEL", ctx.deviceModel);
24579
+ set3("DEVICE-HWV", ctx.deviceHardwareVersion);
24580
+ set3("UA", ctx.userAgent);
24581
+ set3("IP", ctx.ipAddress);
24582
+ set3("UID", ctx.userId);
24583
+ set3("CT-TYPE", ctx.contentType);
24584
+ set3("CT-CATEGORY", ctx.contentCategory);
24585
+ set3("CT-GENRE", ctx.contentGenre);
24586
+ set3("CT-LANGUAGE", ctx.contentLanguage);
24587
+ set3("CT-DURATION", ctx.contentDurationSeconds != null ? ctx.contentDurationSeconds : ctx.isLive ? -1 : void 0);
24588
+ set3("CT-SEASON", ctx.contentSeason);
24589
+ set3("CT-EPISODE", ctx.contentEpisode);
24590
+ set3("CT-RATING", ctx.contentRating);
24591
+ set3("CT-ID", ctx.contentId);
24433
24592
  return values;
24434
24593
  }
24435
24594
  var keepNone = function keepNone() {