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

30 lines
1 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 12643
// Function ID: 97882
2026-07-20 16:05:17 +00:00
// Name: supportsZstd
2026-07-25 08:10:48 +00:00
// Dependencies: [27, 477, 12644, 2]
2026-07-20 16:05:17 +00:00
// Exports: createZstdContextWeb, supportsZstd
2026-07-25 08:10:48 +00:00
// Module 12643 (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-25 08:10:48 +00:00
let supportsZstd = importDefault(12644).getConstants().supportsZstd;
const obj2 = importDefault(12644);
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;
};