Skip to content
Menu+

Quick start

From one always-on machine to playing from your phone in five steps.

MediaControl has three parts: the exposed media-web service, a playback bridge on Windows or macOS, and a phone client. Once all three connect, you open a page and queue music; audio leaves the computer's system output.

What you need

  • An always-on machine (home server, NAS, any Linux host)
  • A Windows or macOS computer that will produce sound
  • An Android phone (optional — a browser works too)
  • One LAN, or a working tunnel

1. Start the server

media-web is a single Python file with no third-party dependencies. It refuses to start without a password — that is deliberate.

MEDIA_WEB_PASSWORD='choose-a-password' \
MEDIA_WEB_PORT=8097 \
python3 app.py

Put public access behind TLS or a Cloudflare Tunnel. Plain :8097 belongs on the LAN only.

2. Start the controlled browser

The bridge needs a browser with remote debugging. Give it a dedicated profile; log in once and reuse that session.

# Windows (Edge)
msedge.exe --remote-debugging-port=9222 \
  --user-data-dir=%LOCALAPPDATA%\media-edge

# macOS (Chrome)
open -na 'Google Chrome' --args \
  --remote-debugging-port=9222 \
  --user-data-dir="$HOME/chrome-media" \
  --autoplay-policy=no-user-gesture-required

3. Start the bridge

Run it on the machine that makes sound. It listens on 8765 and should only be reachable by the server. Use a scheduled task on Windows, a LaunchAgent on macOS.

python3 media-bridge.py   # :8765

4. Open the page

Visit the server, log in, and the page should show playback state and the queue. Play a track and the computer starts.

5. Install the phone client

Download the Android APK and enter the LAN address on first launch; add the public address for outside use. Updates come from a static manifest.

Verify

CheckExpected
Status in headerOnline with current track
Play a trackControlled browser plays; phone shows progress
Change volumeSystem and page volume act independently
Restart serverQueue and position survive (media-state.json)
Drop phone networkPlayback continues