Commit Graph
3861 Commits
Author SHA1 Message Date
zarzet 86ecaeb085 fix(player): stabilize timestamps and restored-session seeking
Advance displayed timestamps at media-second boundaries between engine reports, respecting playback speed, pause, buffering, scrubbing and visibility. Retain and persist seeks on restored sessions before loading the source, including a zero-second target.

Validation: 247 Flutter tests, targeted analyzer, formatter checks and git diff --check.
2026-10-28 20:43:10 +07:00
zarzet 2ad05be4bd fix(metadata): keep WAV INFO and ID3 tags in sync 2026-10-28 00:26:47 +07:00
zarzet 082cfca9af fix(mornye): show menu glass throughout its opening motion 2026-10-28 00:26:32 +07:00
zarzet bd47f132ca fix(motion): only a list's first reveal staggers in
Lazy lists build rows again as they scroll back into view, and the
first ten replayed the stagger each time while later ones never had it:
on a 14-song album, songs 12 and 13 sprang in on every scroll and the
last did not. Rows built while the list is scrolled now appear at once,
so only the reveal at the top animates.
2026-10-28 00:16:32 +07:00
zarzet dff87df790 fix(link): resolve phone artwork on desktop and refresh late covers 2026-10-27 19:01:19 +07:00
zarzet 1e20cd31e6 fix(player): controls stay put with or without Playing on
Material's portrait player added the "Playing on" row under its buttons
only while a computer played, so the controls jumped up when one took
over. The row is now kept while empty, 36dp tall like the one-line label
it holds, without the extra gap below. Mornye's larger cover and phones
under 640dp tall, whose lyrics need the room, keep the old layout.
2026-10-27 18:09:03 +07:00
zarzet 9694027a04 feat(link): one player at a time; the computer follows a phone
The phone already showed and drove the computer once the computer
started playing, but the computer kept its own paused player while a
phone played, and pressing play there played on both.

The computer now follows a connected phone that starts playing while
it does not: its player bar and Now Playing show the phone's song,
position and queue, its controls drive the phone, and the bar names the
phone. Songs picked or queued on the computer play there and end
following.

Only one device plays at a time. The computer starting pauses the
phones that play; the phone starting pauses the computer. A device
paused this way follows the one that took over (the phone only with its
follow option on).

The phone's mirror of the computer moves into a shared
LinkMirroredPlayback, which the computer's LinkPhonePlayback extends.
2026-10-27 18:00:50 +07:00
zarzet 2fe3bf7ab8 fix(link): recover remote covers and retire cancelled playback errors 2026-10-27 17:55:36 +07:00
zarzet b41f0d3eb4 fix(desktop): handle LRC sidecars and percent paths safely 2026-10-27 17:20:11 +07:00
zarzet 9732d87f30 fix(playback): drain desktop audio before advancing tracks 2026-10-27 14:47:01 +07:00
zarzet 75743ae47c feat(player): footer buttons as filled expressive pills
The Material player's lyrics toggle and audio output button now match
the shuffle and repeat group between them: filled 56 by 48dp expressive
pills on surfaceContainerHigh, the lyrics toggle on primaryContainer
while open. ExpressiveIconButton takes a width for pills, and the audio
output button can fill one, wrapping the native route picker on iOS.
2026-10-27 14:40:43 +07:00
zarzet 69a2b82709 feat(settings): regroup the settings list by purpose
The list mixed unrelated entries (Extensions, Donate and Appearance in one card) and grouped six items in another. Donate now has its own card at the top so its progress stays visible; then Appearance, Playback and Lyrics; the music sources; Download, Extensions, Files and Metadata; the app's own settings; and Logs with About. Desktop Settings opens on Appearance instead of the first entry.
2026-10-27 02:47:30 +07:00
zarzet 7ee91e8b7d fix(metadata): review rows span their track card
In Material's metadata review sheet, the connected group centers rows
narrower than itself, so each proposed change sat as a narrow centered
piece under its track instead of filling the card's width.
2026-10-27 02:20:32 +07:00
zarzet fad59b8519 perf(conversion): speed up FLAC encoding and reuse SAF sources 2026-10-27 02:20:20 +07:00
zarzet b7474ba6fb fix(link): send fewer songs ahead of the computer
Play on computer kept up to 10 songs ahead of the one the computer plays, hundreds of megabytes of FLAC sent at once that a skip or a new queue often wasted, keeping the phone's radio busy and draining its battery. Keep 3 ahead on battery and 5 while charging; a skip ahead still refills at network speed and a song not sent yet streams as it arrives.
2026-10-27 02:20:00 +07:00
zarzet a0dd76f55d feat(player): compact player beside idle lyrics
Material's Playback settings gain "Compact player" (off by default). In
portrait, lyrics left idle while playing shrink the player to a smaller
one instead of hiding it: a one-line title and artist with a queue
button, the seek timeline, and the compact expressive transport with the
elapsed and total times beside it. It unfolds in the same spring as the
full controls fold, so the lyrics take the room they leave.

Touches on the compact player (skip, seek, play-pause, the queue button,
a swipe up for the queue) keep it compact; a touch elsewhere brings the
full player back, as before. The queue stays reachable while the app
bar's buttons are faded.
2026-10-27 02:10:27 +07:00
zarzet 4a2848f36f feat(home): more kinds of mixes, and genre mixes that keep their genre
A small genre mix borrowed every song of the two genres its artists or
tags touched, so one J-Rock band tagged Rock filled a J-Pop mix with
rock and pop. A genre mix now holds its own songs; under 20 it adds only
its artists' other songs, and is left out when still too short.

Home now offers up to ten mixes, adding:
- New Additions: songs added in the last 30 days, while they are under
  half of the Library.
- Rediscover: songs played in the year before the last 90 days and not
  since.
- Discover: never played songs of the three genres played most.
- Decade mixes (up to two), each kept to its decade's two main genres.

These discoveries follow the favorites and the two mixes played most,
and are only told apart from each other, since forgotten or unplayed
songs naturally sit in the genre mixes too. The cache key is versioned
so the new kinds appear the same day.
2026-10-27 02:10:21 +07:00
zarzet 85f7764496 fix(macos): keep one instance for debug builds too
A debug build running next to a release copy shared its databases. Hand over to the running instance in every build, as Windows and Linux already do, and say why on stderr so flutter run does not quit silently.
2026-10-27 01:44:51 +07:00
zarzet 8f8019f918 fix(player): open a phone song from its resolved source
Link can resolve a network song to the completed local copy of a file the
phone sent. Playback and gapless preparation streamed every network song
regardless, so a cached copy was opened as a stream. Choose the source by
the resolved path instead: only http and https stream.
2026-10-27 01:33:24 +07:00
zarzet b2c500c4ae feat(home): mixes built from the user's own songs
When Home has no extension feed, a "Mixes for you" section offers up to
six mixes made from downloaded and scanned songs, with no network.

- Songs are grouped into genre families (Hip-Hop, Rap and Trap together)
  weighted by what the user plays; artist mixes fill in when tags are
  missing. A Favorites Mix leads once enough plays are known, falling back
  to loved songs, Autoplay's learning, the saved queue and recent albums
  when listening statistics are off.
- Each mix is ranked with Autoplay's scoring, capped at 20% per artist
  and never the same artist twice in a row.
- Mixes are built once a day on a worker isolate, only after startup has
  settled and no Library scan runs; Home shows the cached mixes meanwhile.
- A mix page in both styles plays, shuffles, saves the mix as a playlist,
  and selects songs with a long press like album pages.
- Genre names and the artist subtitle are localized.
2026-10-27 01:20:38 +07:00
zarzet c2db8ab4b6 feat(player): gapless playback
The next song used to load only after the current one ended, which
left a short silence between songs. With Gapless playback on (the
default), the player loads the next song on a second deck 30 seconds
before the end and starts it the moment the current one completes.

The decks gain setNextDeck. The Android fork links its players with
MediaPlayer.setNextMediaPlayer, so the platform starts the next song
itself; the Darwin fork resumes the linked player first thing in its
end-of-item handler, prerolled when linked. libmpv decks cannot hand
over their output, so on Windows and Linux the loaded deck starts on
the completion event.

AutoMix replaces gapless playback while on, and repeat one, USB
bit-perfect and exclusive output keep the ordinary transition. A queue,
shuffle, repeat or settings change, a pause, a stop or Previous drops
the prepared song; a seek keeps it. Playback settings gain the switch,
which the settings search finds as well.
2026-10-27 00:08:16 +07:00
zarzet 1b5fde3a2e fix(link): show covers for songs a phone sent to the computer
Songs a phone uploads for Play on computer joined the desktop queue
without a cover, expecting the embedded one to show once each played,
so the queue listed them blank. They now take the cover the phone
listed in its catalog, by file id: the cover file the computer holds,
else its web address.

A song that starts through an AutoMix transition now also shows its
embedded cover when none is listed, as a song that starts without a
mix already did.
2026-10-27 00:07:19 +07:00
zarzet f6f82ab6c9 fix(link): show paired devices as Mornye Link, not a plain server
A paired computer is saved as a Subsonic connection, so Network storage
called it "Subsonic" and Audio info placed its songs in "Network storage".
Name the device and Mornye Link instead: Network storage lists it as
"Mornye Link" with the computer glyph and no edit button (the Computers
page manages it), Library sources draw the computer glyph, and Audio
info reads "(device) via Mornye Link", for a paired phone's songs on the
desktop too.
2026-10-26 04:33:20 +07:00
zarzet 19f0fd352c fix(lyrics): translate in song context, skip lyrics already in the target
The translation prompt asked for every line on its own, which read lyrics
word for word. It now names the song and asks the model to read the lines
together, translate idioms by meaning and leave vocal sounds alone.

Automatic translation spent a request on songs already in the target
language and showed each line twice. A local guess (script, then common
words for Latin-script languages) now skips such songs, and a line the
model returns unchanged shows no translation. A manual translation that
changes nothing says the lyrics are already in that language.

The AI translation sheets match the other settings sheets: the
instruction and server address use AppTextField, and the model sheet
sizes to its content instead of filling the screen. The Musixmatch
language actions align to the end on Mornye.
2026-10-26 04:07:26 +07:00
zarzet 965d3d8991 fix(link): send handed-off songs only a window ahead of the computer
Play on computer uploaded every later song the computer lacked back to
back. The computer prunes its received folder to 4 GiB, oldest first, so
a long FLAC queue removed the current and next songs while still queued
and they failed to play.

The phone now sends at most 10 songs, under 1 GiB together, ahead of the
song the computer plays, which it follows through the player.state
pushes it already receives. When the computer plays a song outside the
queue, an empty handoff/append checks that the queue still plays there.

As a safety net, the computer asks a connected phone again for a
received file that is gone and streams it as it arrives, else reports
it unavailable. AutoMix no longer prepares a song that still streams in.
2026-10-26 04:07:26 +07:00
zarzet 564633a6d9 fix(home): run the Material desktop search field across the pane
Capped at the M3 search bar's 720dp, the field stopped partway across a
full screen window and looked cut off under shelves that run to the edge.
It now spans the pane inside the same 24dp margin.
2026-10-26 04:07:26 +07:00
zarzet 6c81854057 fix(autoplay): draw on network Library songs, a paired phone's included
The Library loader kept only songs whose path is a local file, so every
network:// song was dropped: a paired phone's Library on the desktop,
and SMB, WebDAV and Subsonic Libraries too. Autoplay then cycled through
the computer's few own songs. Network songs now join while their host can
be reached: a phone while it is connected, a saved connection unless it
is known to be out of reach. Each host is asked once per load.
2026-10-26 02:03:27 +07:00
zarzet 50c8c4f7b5 fix(home): run Material desktop Home across the whole pane
Home centered at the 1280dp reading width on desktop, but its shelves
still scrolled to the window's right edge and the featured cards ignored
the centering, so a full screen window cut the shelves on one side only.
Material desktop Home now spans the pane with M3's 24dp window margin:
the title, search, greeting and every shelf start at that margin and the
shelves scroll to the edge. The search field stops at the M3 search bar
width of 720dp. Tablets and Mornye keep their centering.
2026-10-26 01:56:40 +07:00
zarzet 91e7c1577e test(playback): expect the exclusive output wrapper on macOS
macOS now plays through ExclusiveOutputDeck, which wraps the AVPlayer deck and moves to libmpv only for exclusive output.
2026-10-26 01:33:56 +07:00
zarzet 1f12076765 feat(search): recognize songs playing nearby
A microphone button in the empty search field listens to the room and
names the song, on phones and desktop.

- The audio fingerprint and the Shazam request run in Rust behind a new
  recognize_song data job, so every platform shares one path.
- Listening sends the audio so far at 4, 8 and 12 seconds and stops at
  the first match; quiet or short clips are reported instead of sent.
- A match can be played from the library (by ISRC, then title and
  artist), searched in Mornye, or opened in Shazam. Recent matches are
  kept in a local history.
- Android asks for the microphone only when listening starts; iOS and
  macOS gain the microphone usage description and entitlement. The Linux
  package recommends pulseaudio-utils for capture.
2026-10-26 01:33:56 +07:00
zarzet b8672fc27b feat(lyrics): translate lyrics with an AI provider
Translate the current song's synced lyrics into a chosen language with
the user's own API key. OpenAI, OpenRouter, any OpenAI-compatible server,
Gemini and Claude are supported, with a model list, a connection test and
an optional extra instruction.

- Keys live in secure storage per provider, never in the settings JSON.
- Translations are cached apart from the lyrics, keyed by the lyric text,
  target language, provider and model; lyric files are never rewritten.
- Repeated lines go once, timing tags are stripped, malformed batches are
  retried then split, and missing lines stay untranslated.
- Errors map to localized messages; rate limits wait out a short
  Retry-After.
- The player and desktop lyrics menus pick the language and show
  progress; automatic translation is off by default.
2026-10-26 01:33:56 +07:00
zarzet c082ff0df4 fix(link): show a downloaded song's cover when a phone plays it
A song a phone starts on the desktop took its cover only from the
catalog's cover file. A downloaded song keeps a web cover URL, which the
catalog leaves out, so the desktop player showed none while the phone
showed the picture embedded in the file. The catalog index now keeps the
web URL for the desktop player.
2026-10-26 01:33:21 +07:00
zarzet 68f5623009 feat(player): show the cover full screen by default in Material
Until a cover style is chosen, Material now fills the top of the player
with the artwork and Mornye keeps the card. The card option is labelled
Card, since it is no longer the default. A saved choice still applies in
both styles; releases never shipped the setting, so no migration is
needed.
2026-10-26 01:28:44 +07:00
zarzet 457d074b28 feat(lyrics): let Mornye's lyrics blur strength be set
Mornye blurs the lyric lines around the current one at a fixed strength.
Lyrics settings now scale it from off to 150% (default 100%), with a
preview line that blurs as the slider moves. Off skips the filter. The
setting shows only where the device draws the blur (Liquid Glass).
2026-10-26 01:25:47 +07:00
zarzet 6acd7691b8 fix(link): shrink the Mornye Playing on label to footnote size
Music names the playback route in small footnote type under the player's
actions. Mornye now uses 13pt semibold with a 13pt glyph instead of body
size; Material keeps its label style.
2026-10-26 01:23:58 +07:00
zarzet b00a21838e fix(link): give transfer groups the page-wide settings inset 2026-10-26 01:14:04 +07:00
zarzet 18af05a26b fix(playback): start a phone song on macOS while it still arrives
AVPlayer indexed every asset precisely, which reads a FLAC to its end. A Mornye Link song still uploading stalls there until the upload ends, so slow uploads timed out with "Failed to set playerItem". The app now marks such a stream and the Darwin fork prepares it without the precise index.
2026-10-26 01:14:04 +07:00
zarzet bdab762285 feat(link): send or save the playing song from the player menu 2026-10-26 01:14:04 +07:00
zarzet da528689a1 chore(link): drop imports the Link actions now export 2026-10-26 01:14:04 +07:00
zarzet e502c3c8bb feat(link): send and save songs from desktop menus
Desktop song, album and playlist menus offer "Send to (phone)" and
"Save to this computer" while a phone is connected, and a snackbar with
View names each transfer, including one a phone offers.
2026-10-26 01:14:04 +07:00
zarzet 72d9b4c26d feat(link): run song transfers on the desktop
The desktop accepts transfers/offer from a phone and saves the offered
songs one transfer at a time into the download folder as Mornye Link
downloads, skipping songs it already has. It offers its own songs to a
phone, follows the phone's status, and fails a phone's transfers when it
disconnects.
2026-10-26 01:14:03 +07:00
zarzet 15621755f1 feat(link): receive whole phone songs for transfers
A transfer waits for a phone song's whole file instead of streaming it,
reports the bytes written so far, and shares one files.request with a
play of the same song.
2026-10-26 01:14:03 +07:00
zarzet 5542da9e81 feat(link): transfers rows in Link settings and the player bar
Add a Transfers row with live progress to the phone Computers page and
the desktop Link page once a device is paired. The desktop player bar
button rings its glyph while songs transfer, and its popover lists
Transfers with the same summary.
2026-10-26 01:14:03 +07:00
zarzet 673d628a11 feat(link): transfers list with expandable transfers
Show song transfers in their own list: a page on phones and a dialog of
the list size class on desktop, grouped into In progress and Finished,
updating live from the transfers store. Each transfer shows a device
pair glyph ringed by progress, its title and status, a progress bar
and a stop button while active, and opens with a spring to its songs
and their state. Finished ones can be cleared.
2026-10-26 01:14:03 +07:00
zarzet ff6a27d665 feat(link): keep the session up while songs transfer
The phone stays connected in the background while a transfer is
active, so the desktop can still request files and hear its status,
and the app root listens for desktop offers to announce them.
2026-10-26 01:14:03 +07:00
zarzet 2fb8cfb3a6 feat(link): send and save songs from phone screens
While a desktop is paired and connected, the song menu, local and
downloaded album headers, playlist header and the Library selection
toolbar offer "Send to <desktop>" for this phone's songs and "Save to
this phone" for the desktop's. Starting either shows a snackbar naming
the transfer with a View action that opens the Transfers page, and an
offer from the desktop shows one wherever the app is.
2026-10-26 01:14:03 +07:00
zarzet 0ddd447bac feat(link): run phone song transfers in the background
Save to this phone now queues an incoming transfer in the Transfers
store instead of a blocking dialog. One transfer runs at a time, songs
already saved are skipped, failures are listed by index, and the phone
reports transfers.status to the desktop (queued, per song, throttled
bytes, final state). The desktop can offer songs with transfers.offer
and stop one with transfers.cancel.

Sending to the desktop posts transfers/offer in chunks of the offer
limit, follows the desktop's status, answers files.request for the
offered songs until the transfer stops (even with sharing off), and
fails running transfers as disconnected when the session drops.
2026-10-26 01:14:03 +07:00
zarzet 770841b3e7 feat(link): share the song transfer protocol and store
Transfers copy songs between the phone and the computer, run by the
receiving device. Adds the offer, status and cancel messages, the
transfers/offer op, LinkTransferSong and LinkTransferStatus, an
in-memory store of this run's transfers, and a placeholder Transfers
view for the units to build on.
2026-10-26 01:14:03 +07:00
zarzet 0bfeda24ab fix(settings): run desktop settings across the pane like page cards
Settings groups centered at the 840 tablet reading width, while page
titles and page-wide cards (theme preview, Library stats) follow the
desktop width of `wideListInset`. In a full screen window the groups
shrank between full-width cards. The settings inset now takes the
smaller of its own centering and `wideListInset`, so phones and tablets
keep their layout, desktop pages line up, and sheets keep their edge.
The color palette, scan notice, Files note and empty Extensions state
take the same inset.
2026-10-26 01:14:03 +07:00
zarzet 8d10bc4856 feat(autoplay): leave song analysis off until turned on
Decoding every Library song is heavy on low-end phones, so the analysis now starts only once the listener enables it in Playback settings.
2026-10-26 01:14:03 +07:00