stormcloud-video-player 0.8.14 → 0.8.15

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.
@@ -2657,6 +2657,7 @@ function logBrowserInfo() {
2657
2657
  // src/utils/ctvVastSignals.ts
2658
2658
  var AIRY_ANDROID_APP_ID = "com.freeairytv.android";
2659
2659
  var AIRY_APP_NAME = "AiryTV Movies & TV";
2660
+ var AIRY_DEFAULT_CONTENT_URL = "https://live.airy.tv";
2660
2661
  var CTV_SESSION_STORAGE_KEY = "stormcloud.ctv.sid";
2661
2662
  var DEVICE_ID_STORAGE_KEYS = [
2662
2663
  "rdid",
@@ -2674,8 +2675,9 @@ function resolveCtvVastSignals() {
2674
2675
  var bridgeSignals = readNativeBridgeSignals();
2675
2676
  var deviceId = bridgeSignals.deviceId || readStoredDeviceId();
2676
2677
  var deviceIdType = bridgeSignals.deviceIdType || readStoredString("deviceIdType") || inferDeviceIdType();
2678
+ var contentUrl = bridgeSignals.contentUrl || readStoredString("contentUrl") || AIRY_DEFAULT_CONTENT_URL;
2677
2679
  return _object_spread_props(_object_spread({
2678
- contentUrl: "https://".concat(AIRY_ANDROID_APP_ID, ".example.com"),
2680
+ contentUrl: contentUrl,
2679
2681
  appId: AIRY_ANDROID_APP_ID,
2680
2682
  appName: AIRY_APP_NAME,
2681
2683
  sessionId: getOrCreateCtvSessionId()
@@ -2726,6 +2728,12 @@ function readNativeBridgeSignals() {
2726
2728
  try {
2727
2729
  for(var _iterator = candidates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2728
2730
  var source = _step.value;
2731
+ var contentUrl = readBridgeValue(source, [
2732
+ "contentUrl",
2733
+ "url",
2734
+ "videoUrl",
2735
+ "canonicalUrl"
2736
+ ]) || void 0;
2729
2737
  var deviceId = readBridgeValue(source, [
2730
2738
  "rdid",
2731
2739
  "ifa",
@@ -2733,7 +2741,7 @@ function readNativeBridgeSignals() {
2733
2741
  "adId",
2734
2742
  "deviceId"
2735
2743
  ]) || void 0;
2736
- if (!deviceId) continue;
2744
+ if (!contentUrl && !deviceId) continue;
2737
2745
  var deviceIdType = readBridgeValue(source, [
2738
2746
  "idtype",
2739
2747
  "deviceIdType",
@@ -2745,11 +2753,13 @@ function readNativeBridgeSignals() {
2745
2753
  "limitedAdTracking",
2746
2754
  "lat"
2747
2755
  ]);
2748
- return _object_spread({
2756
+ return _object_spread({}, contentUrl ? {
2757
+ contentUrl: contentUrl
2758
+ } : {}, deviceId ? {
2749
2759
  deviceId: deviceId
2750
- }, deviceIdType ? {
2760
+ } : {}, deviceId && deviceIdType ? {
2751
2761
  deviceIdType: deviceIdType
2752
- } : {}, limitAdTracking != null ? {
2762
+ } : {}, deviceId && limitAdTracking != null ? {
2753
2763
  limitAdTracking: limitAdTracking
2754
2764
  } : {});
2755
2765
  }