Skip to main content

Module server

Module server 

Source
Expand description

Native preview server: WebSocket on 127.0.0.1, protocol JSON for commands/events, binary frames (16-byte header + JPEG).

The engine is single-threaded (!Send), so it lives on its own thread; the async side only moves messages. Bursts of Seek (scrubbing) are coalesced: only the latest seek in a batch is rendered.

Structs§

ServerOptions
Options of the native preview server.

Functions§

jpeg_encoder
Encodes preview frames as JPEG.
serve
Runs the server until Shutdown or the process is killed. make_engine runs on the engine thread (engines are not Send).