Examples
Every guide in this book is paired with runnable examples in the repository. The Rust
workspace holds the canonical set under examples/,
and the bindings directories mirror them for each supported host language:
| Language | Interop path | Examples |
|---|---|---|
| Rust | Native crates | examples/ |
| C | Direct C ABI (mediaway-ffi) | bindings/c/examples/ |
| C++ | Thin RAII C ABI | bindings/cpp/examples/ |
| C# | P/Invoke | bindings/csharp/examples/ |
| Python | ctypes / cffi | bindings/python/examples/ |
| Node.js | Native Addon / N-API (koffi FFI today) | bindings/nodejs/examples/ |
| Browser | WASM + WebCodecs (no C FFI) | bindings/browser/examples/ |
Examples are grouped by capability, mirroring the guides:
container/— mux + demux only (no codec, no capture)encode//decode/— one codec direction, no containerdevice/— one capture source, no encodepipeline/— composed end-to-end flows (capture → encode → mux, or decode → trim → re-encode)
The language pages below list each language’s example files and how to run them.