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

40 lines
992 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14445
// Function ID: 14446
2026-07-29 08:29:29 +00:00
// Name: isSourceError
// Dependencies: [500, 2]
2026-07-20 16:05:17 +00:00
// Exports: isSourceError
2026-08-24 06:08:38 +00:00
// Module 14445 (isSourceError)
import set from "set" /* 2 */;
import set2 from "set" /* 500 */;
2026-07-29 08:29:29 +00:00
let closure_2 = [-1000, -1003, -1004, -1008];
2026-08-24 06:08:38 +00:00
const result = set.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 {
2026-08-24 06:08:38 +00:00
isIOSResult = set2.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
}
2026-08-24 06:08:38 +00:00
const tmpResult = set2;
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
};