decord/beta/source/modules/quests/native/AdsVideoUtils.tsx
github-actions 9b6fea255e chore: update source for beta 346.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-18 19:45:33 +00:00

39 lines
1 KiB
TypeScript

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