feat: persist program info and gain settings, add known issues to README

This commit is contained in:
2025-06-30 11:25:50 +02:00
parent 06759d01ea
commit beab6209e9
3 changed files with 16 additions and 4 deletions

View File

@@ -37,7 +37,6 @@ audio_mode = st.selectbox(
help="Select the audio input source. Choose 'Webapp' for browser microphone or 'USB' for a connected hardware device."
)
if audio_mode in ["Webapp", "USB"]:
# Stream quality selection (temporarily disabled)
# quality = st.selectbox("Stream Quality", ["High (48kHz)", "Mid (24kHz)", "Fair (16kHz)"])
@@ -56,9 +55,14 @@ if audio_mode in ["Webapp", "USB"]:
value=default_name,
help="The primary name for your broadcast. Like the SSID of a WLAN, it identifies your stream for receivers."
)
raw_program_info = saved_settings.get('program_info', default_name)
if isinstance(raw_program_info, list) and raw_program_info:
default_program_info = raw_program_info[0]
else:
default_program_info = raw_program_info
program_info = st.text_input(
"Program Info",
value=default_name,
value=default_program_info,
help="Additional details about the broadcast program, such as its content or purpose. Shown to receivers for more context."
)
language = st.text_input(
@@ -109,6 +113,7 @@ if audio_mode in ["Webapp", "USB"]:
input_device = selected_option.split(":", 1)[0] if ":" in selected_option else selected_option
else:
input_device = None
import time
start_stream = st.button("Start Auracast")
stop_stream = st.button("Stop Auracast")
@@ -177,6 +182,7 @@ if audio_mode in ["Webapp", "USB"]:
),
]
)
try:
r = requests.post(f"{BACKEND_URL}/init", json=config.model_dump())
if r.status_code == 200: