Repository navigation
Architecture
Miguel Kallemback edited this page Nov 6, 2026
·
2 revisions
CastDeck Local is a live production studio that runs on the host device.
| Layer | Responsibility |
|---|---|
| Local server | HTTP/API, WebSocket signaling, ICE/TURN, FFmpeg/RTMP, recordings, captions and tunnel |
| Web UI | Studio, guest room, projector, replay, remote control and output pages |
| Studio engine | Canvas/WebAudio compositor, mixer, scenes, media, cameras, captions and intercom |
| Desktop launcher | Native window, splash, tray and server lifecycle |
| Android app | Java/WebView host with mirrored signaling |
| Build and site | Cross-platform builds, downloads and public documentation |
cameras/mic/screen ──► WebAudio + program canvas ──► WebCodecs ──► RTMP
│
├──► MP4 recording
├──► captions (separate worker)
└──► guests over WebRTC
The compositor draws the 16:9 program and, when enabled, a separate 9:16 vertical output. Guest return audio uses the same peer as the call and excludes the guest's own voice.
NDI source ──► native Rust bridge ──► FFmpeg (H.264 + Opus) ──► SRT ──► MediaMTX ──► WHEP ──► browser
program canvas ──► WebSocket ──► FFmpeg (UYVY + float32) ──► native bridge ──► NDI output
NDI is optional and disabled by default. Input and output keep independent processes; a failed bridge or FFmpeg is recreated automatically without turning off the subsystem.
- Program audio is independent from video visibility.
- Optional modules cannot take down the live program.
- The host controls stage, program, intercom and outputs.
- No media is sent to third parties beyond configured destinations.
- Local interfaces listen on loopback; guests use HTTPS/tunnel.