voelin-ui: settings through the settings service; free frame rate and bitrate

The window read its blobs (ui, audio, client_playback) from the store once
and wrote them back. It now opens the settings service on the client
database, attaches it to the engine, registers its own keys (ui,
client_playback), and loads config file, VOELIN_SETTING_* and `--set
key=value` overrides below the stored values. Its edits are set on the
service, which stores them off the UI thread and flushes on exit; changes
made elsewhere (e.g. Command::SetSetting) update the window's copies of the
audio, crash report and client volume settings. The crash report opt-in is
the crash_reports key the Android app already read (and stays in the blob
for older versions).

The share dialog starts from stream.fps and stream.bitrate_kbps and takes
any value typed next to the presets, which remain as shortcuts; what was
used is stored back. docs/architecture.md describes stream discovery and
the settings service.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-27 08:33:20 +00:00
1 parent 178173ad0d
commit 2f82a01ca9
7 files changed
+212 -29

No files matched your search

+20
View File
@@ -110,6 +110,26 @@ and asking for one) and hands pictures to the UI, which keeps only the newest
for `voelinctl stream start`; `SyntheticSource` (fake VP8 bytes) remains for
voelin-stream's own tests.
The server announces a stream only to the clients in the streamer's channel
at its start. `voelin-stream::discovery` follows the clients' channels and
streaming flags (`Streams::update_clients`), and looks up streams nobody
announced to us with `requeststreaminfo clid=<streamer>`
([research/ts6-late-join.md](research/ts6-late-join.md)). The lookup is a
`StreamLookup` trait, so another directory (a gateway's) can be added.
## Settings
`voelin-core::settings::Settings` is the settings service. Keys are typed
statics (`Key<T>`: name, default, validation, a `Kind` for a settings page);
the effective value is the runtime value stored in the client database, else
a command line or environment override, else a config file, else the
default. Reads come from memory (`get`, `get_arc`, or a `SettingWatch` per
key); writes notify subscribers and go to SQLite on a writer thread. The
engine holds one (`Engine::settings`, `Command::AttachSettings`), takes
`Command::SetSetting` / `ResetSetting` and reports `Event::SettingChanged`.
The UI opens it on its database and registers its own keys (`ui`,
`client_playback`); the stream keys (`stream.*`) are defined in the core.
## Milestones
| | Scope | Exit criteria |