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:
1 parent
178173ad0d
commit
2f82a01ca9
7 files changed
+212
-29
No files matched your search
@@ -16,8 +16,9 @@ use crate::foreground::Foreground;
|
||||
use crate::host::EngineHost;
|
||||
use crate::{bridge, capture, egl, secrets};
|
||||
|
||||
/// Store setting (`bool`): the user's opt-in to local crash reports.
|
||||
pub const CRASH_REPORTS_SETTING: &str = "crash_reports";
|
||||
/// Store setting (`bool`): the user's opt-in to local crash reports (read
|
||||
/// before the settings service starts, straight from the database).
|
||||
pub const CRASH_REPORTS_SETTING: &str = voelin_core::settings::CRASH_REPORTS_KEY;
|
||||
|
||||
static HOST: OnceLock<EngineHost> = OnceLock::new();
|
||||
static FOREGROUND: Mutex<Option<Foreground>> = Mutex::new(None);
|
||||
@@ -92,6 +93,7 @@ fn run(app: AndroidApp) -> anyhow::Result<()> {
|
||||
runtime: attached.runtime,
|
||||
events: attached.events,
|
||||
}),
|
||||
setting_overrides: Vec::new(),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user