Skip to main content

## Module settings

Source
Expand description

Audio and video playback settings commands.

TRACES: UR-022, UR-027, UR-031, UR-032, UR-033, UR-074 | DR-025, DR-030, DR-034, DR-035, DR-036, DR-162, IR-020

## Constants§

STREAMING_QUALITY_KEY 🔒
  `app_settings` key holding the persisted streaming bandwidth ceiling.

## Functions§

persist_streaming_quality 🔒
  Write the ceiling to `app_settings`. Failure is logged, not returned: the setting has already been applied in memory, and refusing the whole call because the write failed would leave the UI showing a cap that is active.
player_get_audio_settings
player_get_eq_presets
  The built-in equalizer presets and their per-band gain curves (dB), for the settings UI. The curve numbers are domain data defined by the band layout, so the frontend reads them here rather than encoding them.
player_get_streaming_qualities
  The bandwidth ceilings the quality picker may offer, each with the label and one-line detail to show for it, highest first.
player_get_video_settings
player_set_audio_settings
player_set_video_settings
restore_streaming_quality
  Restore the persisted bandwidth ceiling at startup, into both the repository (which enforces it) and `VideoSettings` (which the settings UI reads).