Mobile: live external audio input (USB) source selector

Expose the engine's live-input mode on the remote: an "Sorgente audio"
selector in the Audio tab lists the input devices the output reports and
switches between File/Playlist and a live USB capture (useInput); picking
File again stops the input. Grant the kiosk getUserMedia access with
--use-fake-ui-for-media-stream so device enumeration/labels work without a
prompt. Make reportDevices resilient (per-probe timeout, always report even
an empty list) so the UI gets feedback when no input is connected yet.

The Pi 5 has no audio input — a USB (line) sound card is required; visuals
react to the source while the audio stays on the mixer.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
lucianoandClaude Opus 4.8 committed 2026-06-30 12:27:41 +02:00
1 parent ec4aecaf7c
commit 6657d1afab
5 files changed
+41 -6

No files matched your search

+7
View File
@@ -90,6 +90,13 @@
<!-- AUDIO -->
<section class="panel hidden" data-tab="audio">
<label class="lbl">Sorgente audio
<button id="audio-src-refresh" class="mini" title="Rileva dispositivi di ingresso">↻ Rileva</button>
</label>
<select id="audio-src">
<option value="">🎵 File / Playlist</option>
</select>
<div id="audio-src-hint" class="hint">Per un ingresso live serve una scheda audio USB collegata al Pi. I visual reagiscono alla sorgente (l'audio resta sul mixer).</div>
<label class="lbl">Reattività <span id="gain-v">1.0×</span></label>
<input id="gain" type="range" min="0" max="3" step="0.05" value="1" />
<label class="lbl">Velocità <span id="speed-v">1.0×</span></label>