StaticgetDetects whether the current runtime is Node.js or a browser.
Node.js is identified by the presence of process.versions.node.
StaticisReturns true if the format can be encoded without FFmpeg Wasm in the browser.
Always returns false in Node.js (which uses native child_process instead).
StaticevaluateDetermines the full routing context for a compression job.
Combines environment detection, fast-path eligibility, and file-size thresholds to decide whether to run on the main thread or in a Web Worker.
The compression options including type and format.
Input file size in bytes.
MIME type of the input (e.g. 'audio/wav'). Used to
short-circuit audio fast-path for non-WAV inputs that would otherwise throw.
OptionalisWorkerWarmFn: (type: WorkerType) => booleanOptional callback that returns true when a Worker of the given type is already initialised. When warm, a lower threshold is used (cold-start cost is gone; only postMessage overhead remains).
A RouteContext describing the chosen execution path.
Evaluates the execution environment and selects the optimal compression engine for each operation (fast path, AVIF encoder, heavy path / Node).