Switching between Lyrics and Up Next in the inspector cross-faded on a
fixed linear 180 ms in both styles. It now uses the effects spring of the
style; reduced motion still cuts.
Reversing the inspector mid-move swapped its curve and jumped. Its value
is now the pane's openness on screen: opening runs on the style's spring
from the current velocity, closing eases back from wherever the pane is,
and the pane beside the content still stops at its width.
Mornye's desktop Now Playing fade ends with the fade instead of waiting
for a movement it does not make. The sidebar tint and artwork, the
artwork hover, the volume popover, row actions, hover scrims, the header
title, the mini player lines and the Now Playing panel cross-fade use the
style's effects springs, and the scroll arrows page on a spring that stops
at its target. A closed Now Playing panel drops its queue at once.
The selection panel collapsed, expanded and returned to its place on a
fixed curve from rest. It now runs on the style's slow spatial spring
from the drag's velocity, and from its own velocity when the handle is
tapped mid-move; it stops at its place instead of rising past it. The
dismissal keeps its short eased exit. The bar's entrance gives the slide
and the fade their own lengths, and reduced motion keeps the fade alone.
The Mornye dialog grows on the fast spring. The orientation fade, the
settings search reveal and the log follow move on the style's presets;
the reveal and the log follow now honour reduced motion.
The three selected destination icons bounced on elasticOut and
easeOutBack, also with reduced motion and in Mornye. They now play on the
fast expressive spatial spring in Material, which overshoots by itself,
with the fade on the fast effects spring; Mornye's tab icons and reduced
motion stay at rest.
The Mornye selection pill and switch thumb moved on a fixed ease that
started from rest. Both now run on the snappy spring from where they are:
a released pill or thumb keeps the finger's velocity, and a new selection
mid-move goes on from the current velocity. The spring starts in build,
after the parent applied the change, so it never heads for the old slot
first. The pill's lens swell moves on the fast spring.
Mornye had no motion presets: each call site chose its own eased curve.
MornyeMotion now names springs the way SwiftUI does (duration and
bounce), and AppMotion hands a Mornye site the spring of the same role
wherever that site animates. Reduced motion keeps the site's fallback.
Material destinations now fade through as Material describes it: the
page shown fades out, then the new one fades in from 92 percent. A
change made mid-fade continues from the opacity on screen instead of
starting again from nothing.
Track details kept a hand-built hero for Material and a separate page for
Mornye, with Play and Delete as a bottom bar and one long card of facts.
- Both styles and desktop now use the collection header: cover, title,
artist with the album below, and the meta row (quality, length, explicit
badge, source). The header takes its colours from the artwork.
- Play is the one wide filled button in the header, between a round Edit
metadata and a round Add to queue. Delete stays in the More menu only.
- The facts are split into Metadata, Release, Audio and File Info, built
once for both styles, on tokens and text roles instead of literals.
Identifiers copy on a tap; a long press still offers the copy sheet.
- A missing file shows the shared error card above the sections.
- The song change transition follows the app's motion settings.
- The service pill and its per-service icons are gone; the service is a
row of File Info.
Tests follow the new layout. The sidecar export test also scrolls the
desktop menu to its row, which sat below the menu's fold.
Portable players often do not read the cover inside a song and look for a
folder.jpg beside it. A new Files setting, Save Album Covers (off by
default), saves the cover a download carries into the album's own folder,
with a size choice from the sizes of Embedded Cover Size. The rule of the
animated cover applies: only folders that hold one album get the file, and
one already there stays. A PNG cover is saved as folder.png; other image
formats are not saved.
The folder writing of the animated cover moved to SongFolderFile, which
both covers use for local folders, Android documents and network storage.
While the setting is on, Remove Empty Folders counts folder.jpg and
folder.png as leftovers of a deleted album. While it is off they keep
their folder, as before.
Issue #913
A failed read of an embedded cover was remembered for the whole run for
plain files, so a song read once before the desktop backend had started
showed no cover until the app was restarted. Playing or opening the
song now asks again after 30 seconds; lists still skip a failed file, so
files without a cover are not read at every scroll.
Library was told whether its tab is shown through a constructor
parameter, so entering and leaving the tab built the whole Library:
6 to 7 ms on a profile build on the emulator with a list of songs open.
All it does with the answer is apply the default view when the tab
appears.
The tab now takes a listenable and the shell keeps one Library for the
life of the tab.
With its controls hidden, the Mornye lyrics view still drew about twelve
frames each second: the two time labels kept rolling their digits
unseen. Hidden controls now turn their animations off, so the view
draws when a lyric line changes.
The list keeps its scroll offset between openings. Without fixed row
heights it then built and laid out every row above that offset: 30 ms
for a place 150 songs down on a profile build on the emulator, growing
with the depth.
The list now remembers the first row it held and a row's height. On the
frame that opens it there, the rows above are empty boxes of that
height, as the Material queue does for its jump to the playing song.
A Navigator that is built again builds the page of every route on it
again. The shell built its tab navigators anew on every build, so each
switch of tab rebuilt Home, Library and every page pushed on them: one
frame of 8 to 16 ms on a profile build on the emulator, at each switch.
The tab navigator now hands back the Navigator it built until its page,
key, observers or hero setting change. Library learns whether its tab is
shown from above its navigator instead of as a parameter.
The state of a song that ran out still carries the last position read
while it played, which can lie well before the listed length. A phone
that followed then took its own move to the next song for one picked by
hand and ended the session (seen on a real run with the computer
leading). The report now places a finished song at its end, and a phone
that ran out of its song is no longer logged as paused by itself.
Between a song's end and the start of the next one a player reads as
neither playing nor paused. The phone took that for a pause, so at each
song end the follower was paused and rejoined about three seconds into
the next song (seen on a real run with the phone leading). A device that
reads as stopped within the last moments of its song is now given the
transition wait before a cue goes out.
With reduced motion the rows under Share with other phones grew through
a size animation of no length, which finishes inside its own layout and
which the framework rejects. They now change size at once.
The computer gave no sign that it played together with a phone, and its
Devices sheet still offered the usual choices, which would have moved
the queue under a running session.
While a session runs, the sheet shows a checked Play together row naming
the phone, no device is checked, and choosing this computer or that
phone ends the session there: the computer tells the phone, which stops
the device that was not chosen. This works whichever device owns the
queue. The player bar's Devices button names Play together and, in the
Material style, draws primary.
The row opens and closes with the reveal the phone's timing group uses,
now one widget. With reduced motion it no longer runs a size animation
of no length, which failed inside its own layout.
The phone's Link entry, page, switches, Add by address dialog and pairing
errors still named a computer although a phone can share too. They now
say the other device or paired devices, the Settings entry reads Mornye
on other devices with a devices icon, and Settings search finds it by
phone and device. Indonesian text is added for the five Link strings
that had none.
While the computer owns the queue in Play together, the phone's screens
and media session show the computer, so the volume keys and the player's
volume slider set the computer's volume although the phone sounds too.
Both now set the phone's own volume for as long as the two play together
and return to the computer afterwards.
Continue listening showed the saved session whatever it held, so a song on
a NAS stayed on Home, and played from the NAS, after Local Library was
switched off. The saved session is now left out while it is on a song of
the scanned Library and that Library is off, as Recently Played and the
mixes already do. Downloads and songs the Library does not know stay.
Three check lines a second filled the 500 entry log within three
minutes and pushed everything else out of it. A line is written once a
second while a nudge runs or the players settle, and every five seconds
otherwise.
The simulated players can now lose time on each rate change (the plain
and pinned AVPlayer changes measured on macOS, and an uneven one), sound
230 ms after a play while their report runs ahead until the next engine
read, and only count as heard once they sound. New tests run five
minutes on five seeds each and bound the error and the rate changes.
The computer lost about 24 ms on every AVPlayer rate change, so a nudge
for 49 ms ended near 48 ms again and the aligner nudged every 4 s for
the whole session. The aligner now measures what each nudge's two rate
changes cost and plans the next one with it, lets a nudge run its course
(replanned once from a settled check, at the same rate), ignores checks
for 1 s after a rate change, and leaves errors inside the band alone
where the cost is larger than the band. When planned nudges keep
missing, it holds: no nudge until the drift passes 80 ms.
After a cue the lead now takes the whole settled offset, from two checks
that agree, instead of 60 % of the first one.
Each check logs the follower's reported and expected position, drift,
rate and nudge state at debug level, and each nudge's end logs the drift
before, expected and measured at info level.
A nudge at the rate already in force only moves its end, and one nudge
rate goes straight to the other. Each rate change costs some engines
time, so going through 1 in between cost it twice.
A report now carries the player's rate, so a nudged follower's position
is advanced at 1.02 or 0.98 rather than at 1 between its reading and the
check. A device that does not send it is read at 1, as before.
A paused load leaves audioplayers and media3 decks reporting stopped, so
the next play loaded the song again from the start. Play together's first
cue on the computer began near 0 instead of the cue position. Remember a
source held paused, report it ready, and resume it on play.
A plain AVPlayer rate change holds the item's clock while the audio
restarts, so every change left the song 21 to 26 ms behind (measured on
macOS, every time pitch algorithm). Play together nudges then never
closed a gap. Pin the item time at the current host instant instead,
except for items with the tap, where neither way is steady. Adds a host
test that fails on the plain change.
The message that another phone's songs cannot be changed from here
appeared under the selection sheet, so nothing seemed to happen until
the sheet was closed. No other selection would work on that host, so
the selection ends and the message is seen.
A kept playlist only knew the copies it had saved from the same device.
With a second device sharing the same songs, every one was copied again
beside the first copy. A download of the same song, or a copy saved
from another device, now counts as kept while its file exists.
When a track had both a file on this device and the same song on
network storage or a Link device, the lookup that playlists and
playback use took whichever row came first in the table. The file on
this device answers first now, so it plays without the network.
Send to (device) kept its computer icon when the paired host is a
phone. It is a phone with an arrow there now, which also keeps it apart
from Save to this phone beside it; the Mornye player menu uses the
phone symbol.
A phone host changes no files for other phones. Its songs were then
handed to this phone's own file actions, so deleting, converting or
editing one asked for confirmation and ended with a message about
storage access. They stay with the Link action now, which says that
songs on that device cannot be changed from this phone and sends
nothing.
The catalog now takes a phone's Android storage access documents from
their Library rows without opening them, so browsing, streaming, covers
and copying reach every song of its own the app can play. A phone host
lends each one to its Link server through the playback descriptor lease
and returns it when the server closes it, also when the close arrives
during the open, and returns every lease once the server stops. Network
storage and Link devices' songs stay out.
A catalog path that is a URI, such as an Android storage access
document, opens through the app: the server forwards server/files/open
without a device, duplicates the descriptor the app lends and forwards
server/files/close when the response ends, the client goes away or any
step fails. Lent files are bounded, opened one at a time, and serve
streams with ranges, downloads, embedded covers and lyrics. Phones
cannot send the server's own ops, and plain paths take the old route.
A host that stops while a phone is connecting ends the TLS handshake
without presenting a certificate. Every TLS failure was reported as the
host showing another certificate, so the phone warned that the device
was not verified and offered to pair again. Only a refused certificate
is reported that way now; a handshake that broke off counts as a host
that cannot be reached.
The Mornye Home has only shelves. With an empty Library, nothing played
and no extension, every shelf was hidden and the page was blank under its
title. It now shows an empty state once the Library shelves have answered.
The Material Home is unchanged: it always has its Shortcuts.
A switch, off by default, at the end of the Link page shares this phone.
While it is on, the page shows the computer page's host rows: name,
address, security code, Pair a phone with its PIN, and the paired phones
with Remove. The client list no longer calls every host a computer, and
this phone's own announcement stays out of it.
With sharing on, the phone runs the same host as the computer through
the Link channel and announces it with the platform's service
discovery. It runs while the app is in front or plays, stops after a
short grace in the background (at once on iOS), and leaves out
downloads, opening links and file changes. Sharing is off by default.
Hosts announce their platform and optional features (downloads, opening
links, file changes). The phone remembers them and hides the actions a
host lacks, and shows a phone icon for a phone host. Older hosts that
announce nothing keep every action.
Move the desktop's link* glue into mornye_link::bridge so the phone
crate can run the same server, and expose it to Android and iOS as the
UniFFI object LinkBridge. linkStart takes an optional platform and
features list, announced in the info, the welcome and the mDNS TXT
record (pf), so clients can tell a phone host and the abilities it has.
A Beta entry next to the two devices starts it; choosing one device ends it there. The controller shares the queue, starts the session, keeps the connection, ends quietly when it drops, and remembers a phone timing shift per paired computer, set with a slider shown while it runs.
The phone measures the clock offset, mirrors the leader's song, play state and position to the follower, and corrects drift. The computer answers the together ops, follows cues and reports its own pause, play, skip or a new queue. A simulated room with two players tests start, ten minutes of drift, transport, gapless song ends, a missing song, the timing shift and a lost connection.
Adds the together ops and reports, the deck over the shared player interface, the aligner that leaves small errors alone, nudges the follower's rate or rejoins, and learns the start lead, and the follower that starts at an agreed instant. A simulated deck with clock offset, drift, latency and jitter backs the tests.
setQueueAndPlay takes startPaused so a waiting queue loads without a sound, prepareQueueItem loads an entry without starting it, and the runtime can apply a settings override that is never saved. Play together needs all three.
Song offsets travel as a new songLyricOffset item kind of the sound
settings exchange while Sync sound settings is on. The newest edit wins
per song, dated by when it was set rather than when a sync noticed it,
and a song put back in sync is a tombstone. Both devices keep every
song's offset whether or not they have the song.
The offset of a song's synced lyrics is now the app-wide offset plus the
song's own. The player's lyrics menu opens a Lyrics timing sheet with
This song above All songs; the settings page keeps only the app-wide one.
Songs are keyed by title and artist, as Library, History and Link match a
song across devices, and a song in sync stores nothing. Every timed reader
uses the sum: the player lyrics in both styles, the lyric line preview,
the desktop mini player, lock screen lyrics, sharing and the mirrored
player.
A switch row with the other phone options, off by default. Turning it
off stops syncing and keeps every value.
The settings page test now makes sure Add by address is on screen
before tapping it, since the longer page can leave it past the edge.