Car autoplay for your self-hosted music
A good test of a music app is the first five seconds of the drive. With Melarka your favorites can start by themselves when the phone connects to the car's Bluetooth, with the current lyric line on the car display. Here is how it works on each phone.
Android: the Car autoplay setting
Most cars send a "play" command when Bluetooth connects, and Android passes it to the app that played last, so Melarka resumes its last queue. For a sure start, Melarka has a dedicated setting:
- In Melarka's settings turn on Car autoplay. On Android 12 and later, allow Nearby devices when asked, which is needed to list the cars paired with your phone.
- Choose your car from the list (pair it in Android's Bluetooth settings first).
- Android asks once to confirm that Melarka may use the car. Confirm.
From then on, when the car connects, Melarka shuffles your favorites, even in the background. If music is already playing because the car's own "play" came first, nothing changes. Android 8 to 11 do not wake the app for the car, so autoplay works only while Melarka is already running there; Android 12 and later is the smooth case. Battery optimisation settings can stop background play on some phones, and the Android guide lists them.
iPhone: a Shortcuts automation
iOS passes the car's "play" command to the app that played last. For a sure start, create an automation in the Shortcuts app: Bluetooth, pick your car, Is Connected, Run Immediately, and add Melarka's Shuffle Favorites action. The iPhone guide has the step-by-step instructions and a way to test it.
What shows on the car display
Both apps pass the current lyric line to the lock screen and car display, and support shuffle and repeat on car head units that show them. Synced lyrics depend on finding your song, see synced lyrics.
When there is no signal on the road
Favorites are cached on the phone (on Wi-Fi, under a size limit you set), so they keep playing in tunnels and dead zones. Start autoplay from the cache and the drive does not depend on mobile data.
Needs
- The Melarka server on your network behind HTTPS, for the apps to reach from outside the house.
- The native app. The web app can be added to the home screen, but car autoplay is a feature of the native iPhone and Android apps.
The install guide covers the server side, and the family guide explains accounts, so each driver starts their own favorites.
Install in one command
Needs a Linux machine or NAS with Docker.
curl -fsSL https://raw.githubusercontent.com/aaronsuns/melarka/main/deploy/install.sh | sh -s -- /path/to/your/music
Install in one command ★ Melarka on GitHub
Step by step and configuration: docs/install.md.
FAQ
Does Melarka start playing when my phone connects to the car?
Yes. On Android, turn on Car autoplay in the app's settings and choose your car. On iPhone, add a Shortcuts automation with Melarka's Shuffle Favorites action.
Does it work with Android Auto or CarPlay?
This page does not claim support for them. Melarka's guides describe Bluetooth car autoplay and car controls; check the Android and iPhone guides for the current state.
Do lyrics show on the car display?
Yes, the current lyric line is shown on the lock screen and car display.
What if there is no mobile signal?
Cached favorites keep playing without a signal.