decord/alpha/source/modules/quests/native/AdsVideoUtils.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

39 lines
1 KiB
TypeScript

// Module ID: 15370
// Function ID: 15371
// Name: AdsVideoUtils
// Dependencies: [1364, 2]
// Exports: isSourceError
// Module 15370 (AdsVideoUtils)
import PlatformUtils from "PlatformUtils" /* 1364 */;
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) {
if (error != null) {
const code = error.error.code;
}
if (error != null) {
const errorException = error.error.errorException;
}
if (obj.isAndroid()) {
let hasItem;
if (errorException != null) {
hasItem = errorException.includes("Source error");
}
let isIOSResult = hasItem;
} else {
isIOSResult = PlatformUtils.isIOS();
if (isIOSResult) {
let hasItem1 = null != code;
if (hasItem1) {
hasItem1 = closure_2.includes(code);
}
isIOSResult = hasItem1;
}
const tmpResult = PlatformUtils;
}
return isIOSResult;
};