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.
- package/dist/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +15 -5
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +15 -5
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +15 -5
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +15 -5
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +15 -5
- package/lib/players/index.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +15 -5
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/utils/ctvVastSignals.cjs +15 -5
- package/lib/utils/ctvVastSignals.cjs.map +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -2940,6 +2940,7 @@ function supportsFeature(feature) {
|
|
|
2940
2940
|
// src/utils/ctvVastSignals.ts
|
|
2941
2941
|
var AIRY_ANDROID_APP_ID = "com.freeairytv.android";
|
|
2942
2942
|
var AIRY_APP_NAME = "AiryTV Movies & TV";
|
|
2943
|
+
var AIRY_DEFAULT_CONTENT_URL = "https://live.airy.tv";
|
|
2943
2944
|
var CTV_SESSION_STORAGE_KEY = "stormcloud.ctv.sid";
|
|
2944
2945
|
var DEVICE_ID_STORAGE_KEYS = [
|
|
2945
2946
|
"rdid",
|
|
@@ -2957,8 +2958,9 @@ function resolveCtvVastSignals() {
|
|
|
2957
2958
|
var bridgeSignals = readNativeBridgeSignals();
|
|
2958
2959
|
var deviceId = bridgeSignals.deviceId || readStoredDeviceId();
|
|
2959
2960
|
var deviceIdType = bridgeSignals.deviceIdType || readStoredString("deviceIdType") || inferDeviceIdType();
|
|
2961
|
+
var contentUrl = bridgeSignals.contentUrl || readStoredString("contentUrl") || AIRY_DEFAULT_CONTENT_URL;
|
|
2960
2962
|
return _object_spread_props(_object_spread({
|
|
2961
|
-
contentUrl:
|
|
2963
|
+
contentUrl: contentUrl,
|
|
2962
2964
|
appId: AIRY_ANDROID_APP_ID,
|
|
2963
2965
|
appName: AIRY_APP_NAME,
|
|
2964
2966
|
sessionId: getOrCreateCtvSessionId()
|
|
@@ -3009,6 +3011,12 @@ function readNativeBridgeSignals() {
|
|
|
3009
3011
|
try {
|
|
3010
3012
|
for(var _iterator = candidates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3011
3013
|
var source = _step.value;
|
|
3014
|
+
var contentUrl = readBridgeValue(source, [
|
|
3015
|
+
"contentUrl",
|
|
3016
|
+
"url",
|
|
3017
|
+
"videoUrl",
|
|
3018
|
+
"canonicalUrl"
|
|
3019
|
+
]) || void 0;
|
|
3012
3020
|
var deviceId = readBridgeValue(source, [
|
|
3013
3021
|
"rdid",
|
|
3014
3022
|
"ifa",
|
|
@@ -3016,7 +3024,7 @@ function readNativeBridgeSignals() {
|
|
|
3016
3024
|
"adId",
|
|
3017
3025
|
"deviceId"
|
|
3018
3026
|
]) || void 0;
|
|
3019
|
-
if (!deviceId) continue;
|
|
3027
|
+
if (!contentUrl && !deviceId) continue;
|
|
3020
3028
|
var deviceIdType = readBridgeValue(source, [
|
|
3021
3029
|
"idtype",
|
|
3022
3030
|
"deviceIdType",
|
|
@@ -3028,11 +3036,13 @@ function readNativeBridgeSignals() {
|
|
|
3028
3036
|
"limitedAdTracking",
|
|
3029
3037
|
"lat"
|
|
3030
3038
|
]);
|
|
3031
|
-
return _object_spread({
|
|
3039
|
+
return _object_spread({}, contentUrl ? {
|
|
3040
|
+
contentUrl: contentUrl
|
|
3041
|
+
} : {}, deviceId ? {
|
|
3032
3042
|
deviceId: deviceId
|
|
3033
|
-
}, deviceIdType ? {
|
|
3043
|
+
} : {}, deviceId && deviceIdType ? {
|
|
3034
3044
|
deviceIdType: deviceIdType
|
|
3035
|
-
} : {}, limitAdTracking != null ? {
|
|
3045
|
+
} : {}, deviceId && limitAdTracking != null ? {
|
|
3036
3046
|
limitAdTracking: limitAdTracking
|
|
3037
3047
|
} : {});
|
|
3038
3048
|
}
|