Files
djAudiovisualizaerPi/scripts/kiosk.sh
T
lucianoandClaude Opus 4.8 6657d1afab 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>
2026-06-30 12:27:41 +02:00

17 lines
681 B
Bash
Executable File

#!/usr/bin/env bash
# Launch Chromium fullscreen (kiosk) on the Pi's HDMI, pointed at the output page.
URL="${1:-http://localhost:8080/output.html}"
BIN="$(command -v chromium-browser || command -v chromium || echo chromium)"
exec "$BIN" \
--kiosk --noerrordialogs --disable-infobars --no-first-run \
--autoplay-policy=no-user-gesture-required \
--use-fake-ui-for-media-stream \
--disable-translate --disable-features=Translate \
--check-for-update-interval=31536000 \
--overscroll-history-navigation=0 \
--ozone-platform=wayland \
--ignore-gpu-blocklist \
--test-type \
--disk-cache-size=1 --disable-back-forward-cache \
"$URL" >/tmp/chromium-kiosk.log 2>&1