decord/source/modules/gateway/GatewayZstdUtils.native.tsx

30 lines
1 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 12687
// Function ID: 98057
2026-07-20 16:05:17 +00:00
// Name: supportsZstd
2026-07-28 08:39:19 +00:00
// Dependencies: [27, 477, 12688, 2]
2026-07-20 16:05:17 +00:00
// Exports: createZstdContextWeb, supportsZstd
2026-07-28 08:39:19 +00:00
// Module 12687 (supportsZstd)
2026-07-23 10:11:24 +00:00
import { NativeModules } from "get ActivityIndicator";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const result = require("enforcing").fileFinishedImporting("modules/gateway/GatewayZstdUtils.native.tsx");
2026-07-20 16:05:17 +00:00
export const supportsZstd = function supportsZstd() {
if (obj.isAndroid()) {
2026-07-28 08:39:19 +00:00
let supportsZstd = importDefault(12688).getConstants().supportsZstd;
const obj2 = importDefault(12688);
2026-07-20 16:05:17 +00:00
} else {
const DCDCompressionManager = NativeModules.DCDCompressionManager;
supportsZstd = undefined;
if (null != DCDCompressionManager) {
supportsZstd = DCDCompressionManager.supportsZstd;
}
supportsZstd = null != supportsZstd && supportsZstd;
}
return supportsZstd;
};
export const createZstdContextWeb = function createZstdContextWeb() {
const error = new Error("Attempting to use createZstdContextWeb in a native context. Use MobileGatewayCompressionHandler instead.");
throw error;
};