decord/alpha/source/modules/quests/native/AdsVideoUtils.tsx
github-actions 97fd043558 chore: update source for alpha 347.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
2026-09-19 06:52:51 +00:00

39 lines
1 KiB
TypeScript

// Module ID: 15295
// Function ID: 15296
// Name: AdsVideoUtils
// Dependencies: [1364, 2]
// Exports: isSourceError
// Module 15295 (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;
};