The phone is a remote, not the player
The server only holds the queue, progress and volume. Audio goes out through the system output of Windows or macOS. Lock the phone, switch apps, lose Wi-Fi — the music keeps playing.
SELF-HOSTED · LAN FIRST · NO CLOUD REQUIRED
Open a page on your phone to search, queue, set volume and fade out at bedtime. Playback runs in a controlled browser on Windows or Mac — no extra appliance in the house.
Product and interface are illustrative; your deployment may differ.
now playing
study speaker · system output
queue
3 leftsystem volume
sleep fade
00:58:12
WHY
Simple enough to maintain for years, restrained enough to expose to the internet.
The server only holds the queue, progress and volume. Audio goes out through the system output of Windows or macOS. Lock the phone, switch apps, lose Wi-Fi — the music keeps playing.
Queue, position, speed and volume live in media-state.json and survive restarts. Sleep fade, loudness leveling, resume and favorites history are defaults, not a subscription.
A single-file Python stdlib server, a dependency-free front end, and speech recognition on the machine. Public access requires TLS and auth; without a password the service refuses to start.
PRODUCT
Browser control → server orchestration → bridge driving the browser. Restart any layer alone; local data in the other two is unaffected.
media-web is the only exposed surface: pages, API, auth and rate limiting. Queue and playback state persist locally.
media-bridge runs on the Windows or macOS host and drives a dedicated browser over CDP. No screen capture, no injected drivers.
The Android shell embeds the same page and stores both LAN and public addresses. Browser users install nothing.
ARCHITECTURE
CLIENT
phone / browser
remote and queue
HTTPS / LAN
SERVER
media-web
auth, queue, state, pages
:8097
BRIDGE
bridge
drives the browser
:8765 · CDP :9222
OUTPUT
system audio
speaker / BT / HDMI
OS
SERVER
Server
media-web on :8097 — state, auth and pages.
Python 3.9+ · systemd
WINDOWS
Windows bridge
Drives a controlled Edge tab, sets system volume, autostarts.
bridge :8765 · CDP :9222
MACOS
macOS bridge
Same protocol, controlled Chrome, LaunchAgent at login.
bridge :8765 · CDP :9222
ANDROID
Android client
WebView shell with built-in addresses and OTA.
v1.9.1 · Android 8.0+
SECURITY
This thing is meant to be reachable from outside your LAN, so auth completes before the body is read, writes require CSRF, and a missing password means no service at all.
DOWNLOAD
Small clients, longer deployment. Pick a client, then wire the bridge and server with the docs.
ANDROID
v1.9.1WebView shell with LAN and public addresses, OTA enabled.
APK · 30 KB · Android 8.0+
WINDOWS / MACOS
One Python file, deployed by hand — no installer, one less trust hop.
Python 3.9+ · stdlib
SERVER
The single-file media-web service under systemd; public via Cloudflare Tunnel.
Python 3.9+ · :8097
DOCS
Start with one always-on machine, then connect page, bridge and client. Every step can be verified alone.
From one always-on machine to playing from your phone in five steps.
systemd, reverse proxy and tunnel in minimal form.
Three processes, three ports, one state file.
Controlled browser, dual volume, local speech.
WebView shell, LAN first, OTA updates.
Auth, rate limits, CSRF, fail-closed.
SUPPORT
Start with the troubleshooting page; if that fails, send logs and symptoms together.