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.
@@ -2695,6 +2695,7 @@ function logBrowserInfo() {
2695
2695
  // src/utils/ctvVastSignals.ts
2696
2696
  var AIRY_ANDROID_APP_ID = "com.freeairytv.android";
2697
2697
  var AIRY_APP_NAME = "AiryTV Movies & TV";
2698
+ var AIRY_DEFAULT_CONTENT_URL = "https://live.airy.tv";
2698
2699
  var CTV_SESSION_STORAGE_KEY = "stormcloud.ctv.sid";
2699
2700
  var DEVICE_ID_STORAGE_KEYS = [
2700
2701
  "rdid",
@@ -2712,8 +2713,9 @@ function resolveCtvVastSignals() {
2712
2713
  var bridgeSignals = readNativeBridgeSignals();
2713
2714
  var deviceId = bridgeSignals.deviceId || readStoredDeviceId();
2714
2715
  var deviceIdType = bridgeSignals.deviceIdType || readStoredString("deviceIdType") || inferDeviceIdType();
2716
+ var contentUrl = bridgeSignals.contentUrl || readStoredString("contentUrl") || AIRY_DEFAULT_CONTENT_URL;
2715
2717
  return _object_spread_props(_object_spread({
2716
- contentUrl: "https://".concat(AIRY_ANDROID_APP_ID, ".example.com"),
2718
+ contentUrl: contentUrl,
2717
2719
  appId: AIRY_ANDROID_APP_ID,
2718
2720
  appName: AIRY_APP_NAME,
2719
2721
  sessionId: getOrCreateCtvSessionId()
@@ -2764,6 +2766,12 @@ function readNativeBridgeSignals() {
2764
2766
  try {
2765
2767
  for(var _iterator = candidates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2766
2768
  var source = _step.value;
2769
+ var contentUrl = readBridgeValue(source, [
2770
+ "contentUrl",
2771
+ "url",
2772
+ "videoUrl",
2773
+ "canonicalUrl"
2774
+ ]) || void 0;
2767
2775
  var deviceId = readBridgeValue(source, [
2768
2776
  "rdid",
2769
2777
  "ifa",
@@ -2771,7 +2779,7 @@ function readNativeBridgeSignals() {
2771
2779
  "adId",
2772
2780
  "deviceId"
2773
2781
  ]) || void 0;
2774
- if (!deviceId) continue;
2782
+ if (!contentUrl && !deviceId) continue;
2775
2783
  var deviceIdType = readBridgeValue(source, [
2776
2784
  "idtype",
2777
2785
  "deviceIdType",
@@ -2783,11 +2791,13 @@ function readNativeBridgeSignals() {
2783
2791
  "limitedAdTracking",
2784
2792
  "lat"
2785
2793
  ]);
2786
- return _object_spread({
2794
+ return _object_spread({}, contentUrl ? {
2795
+ contentUrl: contentUrl
2796
+ } : {}, deviceId ? {
2787
2797
  deviceId: deviceId
2788
- }, deviceIdType ? {
2798
+ } : {}, deviceId && deviceIdType ? {
2789
2799
  deviceIdType: deviceIdType
2790
- } : {}, limitAdTracking != null ? {
2800
+ } : {}, deviceId && limitAdTracking != null ? {
2791
2801
  limitAdTracking: limitAdTracking
2792
2802
  } : {});
2793
2803
  }