decord/alpha/source/modules/quests/native/AdsVideoUtils.tsx

40 lines
1 KiB
TypeScript
Raw Normal View History

// Module ID: 15295
// Function ID: 15296
// Name: AdsVideoUtils
// Dependencies: [1364, 2]
2026-07-20 16:05:17 +00:00
// Exports: isSourceError
// Module 15295 (AdsVideoUtils)
import PlatformUtils from "PlatformUtils" /* 1364 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
2026-07-29 08:29:29 +00:00
let closure_2 = [-1000, -1003, -1004, -1008];
const result = size.fileFinishedImporting("modules/quests/native/AdsVideoUtils.tsx");
2026-07-20 16:05:17 +00:00
export const isSourceError = function isSourceError(error) {
2026-07-29 08:29:29 +00:00
if (error != null) {
2026-07-20 16:05:17 +00:00
const code = error.error.code;
}
2026-07-29 08:29:29 +00:00
if (error != null) {
2026-07-20 16:05:17 +00:00
const errorException = error.error.errorException;
}
if (obj.isAndroid()) {
2026-07-29 08:29:29 +00:00
let hasItem;
if (errorException != null) {
hasItem = errorException.includes("Source error");
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let isIOSResult = hasItem;
2026-07-20 16:05:17 +00:00
} else {
isIOSResult = PlatformUtils.isIOS();
2026-07-29 08:29:29 +00:00
if (isIOSResult) {
let hasItem1 = null != code;
if (hasItem1) {
hasItem1 = closure_2.includes(code);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
isIOSResult = hasItem1;
2026-07-20 16:05:17 +00:00
}
const tmpResult = PlatformUtils;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return isIOSResult;
2026-07-20 16:05:17 +00:00
};