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.
@@ -2709,6 +2709,7 @@ function logBrowserInfo() {
2709
2709
  // src/utils/ctvVastSignals.ts
2710
2710
  var AIRY_ANDROID_APP_ID = "com.freeairytv.android";
2711
2711
  var AIRY_APP_NAME = "AiryTV Movies & TV";
2712
+ var AIRY_DEFAULT_CONTENT_URL = "https://live.airy.tv";
2712
2713
  var CTV_SESSION_STORAGE_KEY = "stormcloud.ctv.sid";
2713
2714
  var DEVICE_ID_STORAGE_KEYS = [
2714
2715
  "rdid",
@@ -2726,8 +2727,9 @@ function resolveCtvVastSignals() {
2726
2727
  var bridgeSignals = readNativeBridgeSignals();
2727
2728
  var deviceId = bridgeSignals.deviceId || readStoredDeviceId();
2728
2729
  var deviceIdType = bridgeSignals.deviceIdType || readStoredString("deviceIdType") || inferDeviceIdType();
2730
+ var contentUrl = bridgeSignals.contentUrl || readStoredString("contentUrl") || AIRY_DEFAULT_CONTENT_URL;
2729
2731
  return _object_spread_props(_object_spread({
2730
- contentUrl: "https://".concat(AIRY_ANDROID_APP_ID, ".example.com"),
2732
+ contentUrl: contentUrl,
2731
2733
  appId: AIRY_ANDROID_APP_ID,
2732
2734
  appName: AIRY_APP_NAME,
2733
2735
  sessionId: getOrCreateCtvSessionId()
@@ -2778,6 +2780,12 @@ function readNativeBridgeSignals() {
2778
2780
  try {
2779
2781
  for(var _iterator = candidates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2780
2782
  var source = _step.value;
2783
+ var contentUrl = readBridgeValue(source, [
2784
+ "contentUrl",
2785
+ "url",
2786
+ "videoUrl",
2787
+ "canonicalUrl"
2788
+ ]) || void 0;
2781
2789
  var deviceId = readBridgeValue(source, [
2782
2790
  "rdid",
2783
2791
  "ifa",
@@ -2785,7 +2793,7 @@ function readNativeBridgeSignals() {
2785
2793
  "adId",
2786
2794
  "deviceId"
2787
2795
  ]) || void 0;
2788
- if (!deviceId) continue;
2796
+ if (!contentUrl && !deviceId) continue;
2789
2797
  var deviceIdType = readBridgeValue(source, [
2790
2798
  "idtype",
2791
2799
  "deviceIdType",
@@ -2797,11 +2805,13 @@ function readNativeBridgeSignals() {
2797
2805
  "limitedAdTracking",
2798
2806
  "lat"
2799
2807
  ]);
2800
- return _object_spread({
2808
+ return _object_spread({}, contentUrl ? {
2809
+ contentUrl: contentUrl
2810
+ } : {}, deviceId ? {
2801
2811
  deviceId: deviceId
2802
- }, deviceIdType ? {
2812
+ } : {}, deviceId && deviceIdType ? {
2803
2813
  deviceIdType: deviceIdType
2804
- } : {}, limitAdTracking != null ? {
2814
+ } : {}, deviceId && limitAdTracking != null ? {
2805
2815
  limitAdTracking: limitAdTracking
2806
2816
  } : {});
2807
2817
  }