feat: service-owned queue, full player, audio consistency and mood settings
- Android Media3 service owns a real timeline: gapless playback, notification and headset next/back, 2 s previous rule, queue survives task swipes - per-track loudness gain via an Android PCM processor and desktop mixer - optional 0-8 s fade between tracks; full-screen player with quality info - per-mood offline switch auto-syncs songs on Wi-Fi, three at a time - dedicated mood settings screen with delete at the bottom - one-tap add-to-mood in the player; sleep timer can finish the current track - version 0.4.0
This commit is contained in:
1 parent
8d7f6a0ccb
commit
1e3dac4e47
26 files changed
+2088
-689
No files matched your search
@@ -37,9 +37,8 @@ a server-driven radio session and songs are added from Deezer or YouTube Music.
|
||||
same mood session.
|
||||
- Playback events are reported automatically (`started`, `completed`, `skipped`)
|
||||
so the server learns.
|
||||
- Two add-to-mood actions in the player:
|
||||
- **Add to current mood** (the mood of the active radio session)
|
||||
- **Choose another mood** (picker)
|
||||
- **Add to mood is one tap** in the bottom player and the full-screen player.
|
||||
Choosing a different mood stays in the overflow/picker.
|
||||
- A queue sheet from the player: the current track is pinned, upcoming tracks
|
||||
can be reordered by **long-press and drag** or removed. Changes are persisted
|
||||
locally.
|
||||
@@ -48,15 +47,23 @@ a server-driven radio session and songs are added from Deezer or YouTube Music.
|
||||
- **Headset/Bluetooth next and previous** and the media notification's skip /
|
||||
back buttons use the same queue rules as the in-app controls; they no longer
|
||||
seek inside the single ExoPlayer item.
|
||||
- The bottom player keeps the cover and title/artist readable on narrow phones;
|
||||
add-to-mood actions moved into the overflow menu.
|
||||
- The bottom player keeps the cover and title/artist readable on narrow phones.
|
||||
Tapping it opens the **full-screen player**: large artwork, scrubber, transport,
|
||||
add-to-mood, queue, sleep timer and Up next.
|
||||
- **Audio consistency**: the server measures every track's integrated loudness
|
||||
with ffmpeg and stores a gain (target `-16 LUFS`); the app applies it per
|
||||
track. The player shows the source and bitrate, and settings explain when the
|
||||
Deezer ARL is limited to 128 kbps.
|
||||
- **Gapless playback** on Android with an optional 0–8 s fade between tracks.
|
||||
- **Scrubbing**: the progress slider can be dragged on every platform. Android and
|
||||
web seek natively; desktop restarts the decoder at the requested position.
|
||||
- **Mood settings**: name, description, discovery hint, genres, collection share,
|
||||
active recommendation count (0–30), and refresh interval.
|
||||
- **Mood settings** live on their own screen: name, description, discovery hint,
|
||||
genres, source, collection share, recommendations, refresh interval, a
|
||||
**Keep this mood offline** switch, and Delete at the bottom.
|
||||
- **Downloads** screen for device-side copies: play, delete, clear, storage
|
||||
usage.
|
||||
- **Sleep timer** (15/30/45/60/90 minutes) that pauses playback. On Android the
|
||||
- **Sleep timer** (15/30/45/60/90 minutes or **finish this track**) that pauses
|
||||
playback. On Android the
|
||||
pause is scheduled inside the media service, so it still fires when the app is
|
||||
backgrounded or the task is swiped away.
|
||||
- Mood cache: moods and details are stored locally so the app opens instantly
|
||||
@@ -72,7 +79,7 @@ a server-driven radio session and songs are added from Deezer or YouTube Music.
|
||||
|
||||
## Screens
|
||||
|
||||
`Moods | Mood Detail | Search | Downloads | Settings`
|
||||
`Moods | Mood Detail | Mood settings | Search | Downloads | Settings | Now playing`
|
||||
|
||||
- **Moods** — grid with song and pick counts, create, global search.
|
||||
- **Mood Detail** — songs, add music, recommendations, next batch, settings.
|
||||
@@ -80,7 +87,8 @@ a server-driven radio session and songs are added from Deezer or YouTube Music.
|
||||
downloaded badges and an inline Downloading… / Added / Failed status per
|
||||
result, so the keyboard never hides the feedback.
|
||||
- **Downloads** — offline files and storage usage.
|
||||
- **Settings** — account, server URL, offline storage, sign out.
|
||||
- **Settings** — account, server URL, audio (normalization, crossfade, source
|
||||
quality), offline storage and auto-synced moods, sign out.
|
||||
|
||||
There is no Library tab, no Longform tab and no global shuffle.
|
||||
|
||||
@@ -200,7 +208,7 @@ Tagged builds (`v*`) publish to internal testing from CI. The Gitea secrets are:
|
||||
| `ANDROID_KEY_PASSWORD` | key password |
|
||||
| `PLAY_SERVICE_ACCOUNT_JSON` | contents of the service account JSON |
|
||||
|
||||
Then `git tag v0.3.3 && git push --tags` builds, signs and uploads the bundle.
|
||||
Then `git tag v0.4.0 && git push --tags` builds, signs and uploads the bundle.
|
||||
Gradle Play Publisher asks Play for the next free `versionCode`
|
||||
(`ResolutionStrategy.AUTO`), so only the tag/version name needs to change.
|
||||
|
||||
@@ -264,9 +272,11 @@ scripts/build-ci-image.sh 3
|
||||
|
||||
## Known limitations
|
||||
|
||||
- The media notification exposes play/pause and seeking. Queue actions (skip,
|
||||
add to mood) stay in the app because the mood session and its events belong to
|
||||
the server.
|
||||
- The media notification exposes play/pause, skip and back from the timeline.
|
||||
Adding to a mood stays in the app because the session and its events belong to
|
||||
the server. The queue lives in the Android media service, but the *next batch*
|
||||
still comes from the app process; if the process is killed, the known queue
|
||||
keeps working but nothing more is fetched.
|
||||
- Desktop playback supports seeking by reopening the decoder at the requested
|
||||
position. MP3s are decoded to 16-bit PCM before the line is opened, because
|
||||
Java Sound has no line for the compressed format.
|
||||
|
||||
Reference in new issue
Block a user