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

41 lines
1 KiB
TypeScript
Raw Normal View History

2026-10-02 13:37:24 +00:00
// Module ID: 14549
// Function ID: 14550
// Name: AdsVideoUtils
2026-10-02 13:37:24 +00:00
// Dependencies: [1370, 2]
// Exports: isSourceError
2026-10-02 13:37:24 +00:00
// Module 14549 (AdsVideoUtils)
import PlatformUtils from "PlatformUtils" /* 1370 */;
import size from "module_2" /* 2 */;
let closure_2 = [-1000, -1003, -1004, -1008];
const result = size.fileFinishedImporting("modules/quests/native/AdsVideoUtils.tsx");
export const isSourceError = function isSourceError(error) {
2026-10-01 14:13:23 +00:00
let code;
let errorException;
let isIOSResult;
if (error != null) {
2026-10-01 14:13:23 +00:00
code = error.error.code;
}
if (error != null) {
2026-10-01 14:13:23 +00:00
errorException = error.error.errorException;
}
2026-10-01 14:13:23 +00:00
const obj = PlatformUtils;
if (obj.isAndroid()) {
let hasItem;
if (errorException != null) {
hasItem = errorException.includes("Source error");
}
2026-10-01 14:13:23 +00:00
isIOSResult = hasItem;
} else {
2026-10-01 14:13:23 +00:00
const tmpResult = PlatformUtils;
isIOSResult = tmpResult.isIOS();
if (isIOSResult) {
2026-10-01 14:13:23 +00:00
const hasItem1 = null != code && closure_2.includes(code);
isIOSResult = hasItem1;
}
}
return isIOSResult;
};