KiteFFmpegWeb
Loads the codec, which on the web is a separate wasm module fetched over the network.
Every other target links FFmpeg into the same binary and can answer FFmpeg.identity the instant the process starts. A browser cannot, and cannot block waiting either, so the web needs one explicit step that the common API has nowhere to put. Call this once, await it, and the rest of kiteffmpeg behaves normally:
KiteFFmpegWeb.load("/kite.mjs")
check(FFmpeg.identity.isAcceptable)Web only. It exists in no common source set, so no other platform's API changes to accommodate it.
Types
Thrown when the module was built without the runtime pieces this backend reads.
Thrown when the codec is used before load has completed. Names the fix, not the symptom.
Properties
Functions
Creates a runtime that owns codecModule, an asynchronous codec module the page has already instantiated. Use it under a bundler, for the reason attach gives.