decord/source/modules/quests/native/AdsVideoUtils.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

39 lines
1 KiB
TypeScript

// Module ID: 15052
// Function ID: 15053
// Name: AdsVideoUtils
// Dependencies: [1115, 2]
// Exports: isSourceError
// Module 15052 (AdsVideoUtils)
import PlatformUtils from "PlatformUtils" /* 1115 */;
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;
};