decord/alpha/source/modules/messages/WebViewWebmSupportTest.native.tsx

45 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2026-10-10 08:08:14 +00:00
// Module ID: 5420
// Function ID: 5421
// Name: WebViewWebmSupportTest
2026-10-10 08:08:14 +00:00
// Dependencies: [1382, 5068, 2]
2026-07-20 16:05:17 +00:00
// Exports: isIOSWithWebM
2026-10-10 08:08:14 +00:00
// Module 5420 (WebViewWebmSupportTest)
2026-10-09 10:00:15 +00:00
import PlatformUtils from "PlatformUtils" /* 1382 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
2026-10-03 08:58:59 +00:00
let tmp;
2026-10-10 08:08:14 +00:00
const DeviceUtils = tmp(5068);
2026-07-29 08:29:29 +00:00
const ARM64_ = "ARM64_";
const result = size.fileFinishedImporting("modules/messages/WebViewWebmSupportTest.native.tsx");
2026-07-20 16:05:17 +00:00
export const isIOSWithWebM = function isIOSWithWebM() {
2026-10-03 08:58:59 +00:00
const obj = PlatformUtils;
2026-07-20 16:05:17 +00:00
if (obj.isIOS()) {
2026-10-03 08:58:59 +00:00
const tmpResult = DeviceUtils;
const str = tmpResult.getSocName();
let tmp4 = null == str || !str.startsWith(ARM64_);
2026-07-20 16:05:17 +00:00
if (!tmp4) {
2026-07-29 08:29:29 +00:00
const str2 = str.substring(6);
2026-10-03 08:58:59 +00:00
let tmp6 = "T" !== str2[0] && "S" !== str2[0];
2026-07-29 08:29:29 +00:00
if (!tmp6) {
const substr = str2.substring(1);
let tmp8 = "7" !== substr[0];
if (tmp8) {
let tmp9 = "8" !== substr[0];
if (!tmp9) {
2026-07-20 16:05:17 +00:00
const _parseInt = parseInt;
2026-07-29 08:29:29 +00:00
tmp9 = parseInt(substr, 10) >= 8101;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp8 = tmp9;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp6 = tmp8;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp4 = tmp6;
2026-07-20 16:05:17 +00:00
}
return tmp4;
} else {
return false;
}
};