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.
@@ -2745,6 +2745,7 @@ function logBrowserInfo() {
2745
2745
  // src/utils/ctvVastSignals.ts
2746
2746
  var AIRY_ANDROID_APP_ID = "com.freeairytv.android";
2747
2747
  var AIRY_APP_NAME = "AiryTV Movies & TV";
2748
+ var AIRY_DEFAULT_CONTENT_URL = "https://live.airy.tv";
2748
2749
  var CTV_SESSION_STORAGE_KEY = "stormcloud.ctv.sid";
2749
2750
  var DEVICE_ID_STORAGE_KEYS = [
2750
2751
  "rdid",
@@ -2762,8 +2763,9 @@ function resolveCtvVastSignals() {
2762
2763
  var bridgeSignals = readNativeBridgeSignals();
2763
2764
  var deviceId = bridgeSignals.deviceId || readStoredDeviceId();
2764
2765
  var deviceIdType = bridgeSignals.deviceIdType || readStoredString("deviceIdType") || inferDeviceIdType();
2766
+ var contentUrl = bridgeSignals.contentUrl || readStoredString("contentUrl") || AIRY_DEFAULT_CONTENT_URL;
2765
2767
  return _object_spread_props(_object_spread({
2766
- contentUrl: "https://".concat(AIRY_ANDROID_APP_ID, ".example.com"),
2768
+ contentUrl: contentUrl,
2767
2769
  appId: AIRY_ANDROID_APP_ID,
2768
2770
  appName: AIRY_APP_NAME,
2769
2771
  sessionId: getOrCreateCtvSessionId()
@@ -2814,6 +2816,12 @@ function readNativeBridgeSignals() {
2814
2816
  try {
2815
2817
  for(var _iterator = candidates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2816
2818
  var source = _step.value;
2819
+ var contentUrl = readBridgeValue(source, [
2820
+ "contentUrl",
2821
+ "url",
2822
+ "videoUrl",
2823
+ "canonicalUrl"
2824
+ ]) || void 0;
2817
2825
  var deviceId = readBridgeValue(source, [
2818
2826
  "rdid",
2819
2827
  "ifa",
@@ -2821,7 +2829,7 @@ function readNativeBridgeSignals() {
2821
2829
  "adId",
2822
2830
  "deviceId"
2823
2831
  ]) || void 0;
2824
- if (!deviceId) continue;
2832
+ if (!contentUrl && !deviceId) continue;
2825
2833
  var deviceIdType = readBridgeValue(source, [
2826
2834
  "idtype",
2827
2835
  "deviceIdType",
@@ -2833,11 +2841,13 @@ function readNativeBridgeSignals() {
2833
2841
  "limitedAdTracking",
2834
2842
  "lat"
2835
2843
  ]);
2836
- return _object_spread({
2844
+ return _object_spread({}, contentUrl ? {
2845
+ contentUrl: contentUrl
2846
+ } : {}, deviceId ? {
2837
2847
  deviceId: deviceId
2838
- }, deviceIdType ? {
2848
+ } : {}, deviceId && deviceIdType ? {
2839
2849
  deviceIdType: deviceIdType
2840
- } : {}, limitAdTracking != null ? {
2850
+ } : {}, deviceId && limitAdTracking != null ? {
2841
2851
  limitAdTracking: limitAdTracking
2842
2852
  } : {});
2843
2853
  }