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
@@ -89,8 +89,12 @@ export struct ShareForm {
name: string,
// Index into the frame rate choices (15, 30, 60).
fps-index: int,
// Frames per second as typed; a choice fills it in. Any number above 0.
fps: string,
// Index into the bitrate choices (2.5, 4.6, 8, 10 Mbit/s).
bitrate-index: int,
// Video bitrate in kbit/s as typed; a choice fills it in.
bitrate: string,
audio: bool,
auto-accept: bool,
}
@@ -935,8 +939,16 @@ component ShareDialog inherits Dialog {
ComboBox {
model: [@tr("15 fps"), @tr("30 fps"), @tr("60 fps")];
current-index <=> form.fps-index;
selected => { form.fps = [15, 30, 60][self.current-index]; }
accessible-label: @tr("Frame rate");
}
LineEdit {
text <=> form.fps;
input-type: number;
placeholder-text: @tr("fps");
width: 90px;
accessible-label: @tr("Frames per second");
}
}
HorizontalLayout {
spacing: 8px;
@@ -948,8 +960,16 @@ component ShareDialog inherits Dialog {
ComboBox {
model: [@tr("Low (2.5 Mbit/s)"), @tr("Standard (4.6 Mbit/s)"), @tr("High (8 Mbit/s)"), @tr("Best (10 Mbit/s)")];
current-index <=> form.bitrate-index;
selected => { form.bitrate = [2500, 4608, 8000, 10000][self.current-index]; }
accessible-label: @tr("Quality");
}
LineEdit {
text <=> form.bitrate;
input-type: number;
placeholder-text: @tr("kbit/s");
width: 90px;
accessible-label: @tr("Bitrate in kbit/s");
}
}
CheckBox {
text: @tr("Share system audio");