SessionAges only counted a refresh as proof of a live visitor session,
so after SESSION_FRESH_FOR (5 min) every open began with a public-link
handshake: info and SRP auth on new connections, then a new session
client with a cold pool. The next episode after any episode paid it
before its first byte, and so did the warm of the next episode near the
credits, moving the playing episode onto cold connections. A successful
operation now marks the session fresh too; a session that died anyway
still gets its refresh and retry when the next request fails.
B78.
On FileLoaded the player thread waited for every subtitle file beside
the episode to open, each a round trip, before restoring the remembered
tracks. Meanwhile no event was read and no command ran, so the clock
froze and clicks waited, and a remembered audio track switched audibly
once they came. The tracks are restored at once now, and the subtitle
files are added as soon as they are open, with the remembered subtitle
restored again in case it is one of them.
B79.
- The Wayland frame cap sleeps against a fixed schedule. Measured from
the end of each sleep, overshoots added up and the cap ran below its
rate, so 59.94 fps video lost frames. The default cap is 144, so a
59.94 fps film is not right at the ceiling and 120/144 Hz panels are
not held at 60; frames are still only drawn on demand.
- Position and buffer events no longer ask for a frame of their own
while the picture is on screen. mpv offers a picture for the same
video frame, and the extra frame landed at another moment with no new
picture, which on Wayland made the pacer hold the real one back. A
250 ms tick still moves the clock when no picture comes.
- Behind another page, mpv's frames were never rendered: each was
decoded, waited on and dropped, and the picture caught up with a
stutter on return. The video track is now off while hidden and put
back on return; audio plays on.
B77.
mpv's render API needs the windowing system's display connection to set
up hardware decoding that hands frames to GL on Intel and AMD
(render_gl.h: MPV_RENDER_PARAM_WL_DISPLAY / X11_DISPLAY). The render
context was created with neither, so hwdec=auto-safe fell back to
software decoding or copied every frame back to system memory.
The display under eframe's window is now passed through VideoSurface
into VideoRenderer, and the decoder in use is logged once per file as
hwdec-current.
B76.
- The media session gets a new playback state only when the status, the
actions or the clock's course change, and new metadata only when the
episode, duration or poster change. It was rebuilt with the poster on
every 250 ms poll, so SystemUI and the lock screen redrew four times a
second.
- The poll runs every second while paused, stopped or ended and only
reports changes then; transport calls wake it at once. The track list
is read when mpv says it or the pick changed, not every second.
- Without a surface, vid=no stops video decoding (iOS already does);
attaching a surface turns it back on.
- surfaceChanged only redraws instead of re-creating the EGL surface,
and a new surface draws the current picture, so a paused picture no
longer stays black after a rotation.
- The resume point is mpv's start option, set before loadfile, instead
of a time-pos seek after the file loaded.
B75.
B8 turned the block layer's read-ahead off under mpv on the desktop:
12 blocks cost 5.5 s to the first frame and 3.6 s to resume a seek,
against 2.5 s and 1.5 s with none. The mobile bridge, which iOS links
too, built its StreamSource from StreamConfig::default() and kept the
12 blocks. The value is now pstr_stream::MPV_READAHEAD_BLOCKS, passed by
every player (B74).
SDK 0.12.10 puts an `attempts` attribute on each `http_request` event:
the first send, retries and the replay after a token refresh. The
request counter adds them up beside the calls and prints the total and
each route's repeated sends. Calls without the attribute are counted
apart, so an older SDK reads "unavailable" rather than a wrong number.
`pstr bench --requests` gives the bench its own telemetry sink and
prints, per phase, the API calls by route, the block downloads and the
SDK operations they belong to. Only the share holding the file is
opened, so the share-open count is that share's alone.
Routes keep their shape with ids replaced by `{id}`, and nothing else
from an event is stored, so the report holds no URL, name or token.
The SDK reports one event per logical call, so retries inside a call
are not counted; the report says so.
Moves proton-sdk and proton-drive-rs to 0.12.9, which reports the
public-link handshake to telemetry with fixed endpoint labels.
Both crates move together from 0.12.2. 0.12.8 labels each instrumented
HTTP operation with its endpoint, the base the request benchmarks in
PLAN.md count against. No Stream code changes. This commit is the
pre-optimisation baseline.
A file copied into a second folder became a second episode: Inuyasha listed
episodes 1 and 2 twice. Library::build now keeps one of each file a title holds
more than once (same name, same size), preferring the copy played last and
otherwise the one in the folder holding more of the title, where an
ordered-chapters episode finds its opening and ending.
Android showed the first error-level line mpv logged as soon as it arrived,
so a High 10 episode that falls back to software decoding put "Could not open
codec." over a playing picture, and a copy without its opening and ending put
the missing timeline there. The error is now held until the file actually
ends with an error, as on iOS, and mpv's warnings and errors go to logcat
under pstr-mpv.
AniList files every season as an entry of its own, and a title matches the
first, so picking season three of The Apothecary Diaries still showed
season one's cover and synopsis.
Enrichment already walks the sequel chain to find the episodes; the
relations query now also asks each entry for its cover, banner, name,
synopsis and year. A library season takes the art of the entry that
answers its lowest-numbered file, and the result is stored as JSON in a
new season_art column (schema 16), kept across a refresh of the match the
same way the chain is.
Desktop shows the picked season's poster, name and synopsis in the title
header; Android (phone and TV) and iOS show its name, cover and synopsis
above the episodes. Seasons the match itself answers keep the title's art.
The design overhaul in #39 changed every screen with a card, a focus ring
or a scrim, but the Roborazzi baselines were not retaken, so
verifyRoborazziDebug failed 17 of them on main once #42 got the
Robolectric jars past Maven Central's 429s.
An ordered-chapters episode links its opening and ending from other files
by SegmentUID. mpv looks for those in the episode's directory, which a
stream does not have, so the chapters were skipped.
Before an episode loads, read which segments it links to, read the
SegmentUID of the unnumbered files in the same folder, and hand mpv the
matching streams as an inline ordered-chapters-files playlist. A
candidate's SegmentUID is remembered by revision for the life of the
process.
On mobile, mpv re-opens the main URL while resolving references and
closes it again; native streams are now reference-counted per open so
that close no longer releases the stream that is playing.
Openings and endings on their own are no longer listed as episodes of a
numbered series.
Central's 429s were not only the Robolectric jar: the next runs failed
configuring the root project, on kotlin-stdlib-jdk8, kotlin-reflect and
kotlin-gradle-plugin-model. Gradle now asks Google's mirror of Central
ahead of Central itself, for plugins and dependencies, and CI fetches the
Robolectric jar from the mirror too.
AniList files each season as an entry of its own and a title matches the
first, so its status and next episode were season one's: The Apothecary
Diaries read "Finished" with no next episode while its third season
aired. Enrichment already walks the SEQUEL chain to the season the files
reach; it now takes that entry's status and next airing episode along,
and the catalog keeps them in a column of their own (schema v15,
latest_airing) so refreshing the match's details does not put season
one's back. The migration re-enriches AniList titles to fill it in.
Maven Central answered CI's downloads of the 150 MB android-all jar with
429, which failed every Robolectric test: on main, and on most pull
requests since. The Gradle home's copy did not survive, evicted with the
rest of that cache. CI now keeps the jar in a cache keyed on its version,
fetches it with curl's backoff and a checksum when the cache is cold, and
points the tests at it through PSTR_ROBOLECTRIC_DIR. A local build still
stages it through Gradle.
NativeRuntime.engine() is async, and the simulator build refused
decodeInvite without the await and inviteLink as a synchronous call. The
outgoing sheet now builds its invite in a task and shows a spinner until
it is ready.
A Matroska release that links its opening and ending from separate files
makes mpv log "Failed to find ordered chapter part!" and play the episode
without them. Android showed that line over the playing picture, and on
iOS it could stand in for the real reason a file failed. Both now skip it.
B71 in docs/BUGS.md.
Opening the shares of an accepted invite showed "crawling" in the top bar
before any crawl had started, and a refused invite said "added nothing"
next to a failure line that gave no reason. The bar now says "connecting"
until the shares open, an invite that added nothing says nothing of its
own, and a single refused share names its reason.
Desktop:
- a tile's subtitle under a two-line name was cut through its middle;
the caption area is 60 px, not 54
- shelves no longer draw a scroll bar over their last captions
- each page keeps its own scroll position, so a title opens at its top
and Back returns to the same place in the library
- a folded synopsis runs its paragraphs together instead of leaving the
ellipsis alone on a line
- the Gradient accent setting describes what it does now
Android and iOS:
- over the banner's artwork, More info and My List are a translucent
wash of the text colour, so Play is the one coloured button
- a tile's press ripple no longer cuts into the first letter of its
caption
- a show watched through offers Play S01E01, not Continue with S01E01
- on TV, the title page's secondary buttons sit on a wash of the page
and stay readable over bright artwork
A crawl of an account folder spent most of its time unlocking file node
keys, one S2K derivation of tens of milliseconds per file, only to read
each file's claimed size. Folders are now walked light (names, revisions,
no file keys), and only files the catalog does not already hold at their
current revision are opened in full (SharedLibrary::crawl_known,
Catalog::known_files). On a 1,353-node library a recrawl went from
20-27 s wall and 88 s CPU to 5 s wall and 9 s CPU. A first crawl costs
what it did; public links have no light listing and are unchanged.
- The catalog stores a crawl as a diff: unchanged rows cost a lookup
instead of a delete, an insert and three index updates.
- Desktop: row building and SQLite run on blocking threads, off the
workers the other shares' listings use; shares finishing together
rebuild the library at most every 2 s, and once at the end.
- Android: shares crawl three at a time instead of one after another,
the session is refreshed only when old, and the offline index is read
once per crawl.
- pstr crawl --timings breaks each share's time into listing, parsing
and storing.
A share was two secrets in two messages and a trip through the Add form
per share. An invite (pstr-core::invite) carries any number of shares,
links and custom passwords together, as pstr://add?v=1&s=<base64url JSON>,
and is shown as a QR code too.
- Desktop: an invite button on each share row and "Share the whole
library"; a dialog with the QR code and Copy link. An invite clicked,
pasted anywhere or typed into the Add form opens a confirmation that
lists what it adds, greying out shares already here.
- The desktop entry and the MSI register the pstr scheme; a second
launch hands the invite to the open window.
- Android and iOS: Invite in a share's menu, Send / Copy / QR, and the
same confirmation for a tapped or shared invite. The TV shows the QR.
- pstr invite / pstr accept in the CLI; accept asks for the invite
rather than taking it as an argument.
The link is never printed: it is copied or sent on purpose, the clipboard
copy is marked sensitive (Android) and local-only (iOS), and every
surface says that an invite holds passwords. Account folders have no
link and are left out, with a note.
- The accent is a flat fill. With gradients on (now off by default) it
shades into a darker tone of itself, never into orchid.
- Copper gets a 100-700 scale; as an accent on dark it uses the lit 400.
iOS shows the copper rating star and new-episodes badge like Android.
- Every scrim over artwork follows one eased curve (SCRIM_STOPS), layered
by job instead of one many-stop ramp. The desktop banner is taller and
loses its full-picture wash.
- One solid focus ring on every client; the TV gradient border and the
desktop's inner copper ring are gone.
- Missing art is a plain card with initials, not a hashed colour ramp.
- A portrait poster in a landscape card fills the frame with a dimmed
crop of itself.
On a TV the volume slider took left and right on the D-pad, so focus
could not leave it; volume is the TV's job there, so the slider is gone.
The transport buttons wear the focus ring. mpv now drops frames a weak
box cannot decode in time instead of letting video fall behind audio
(issue #5).
Direct VideoToolbox hands mpv's Vulkan renderer surfaces MoltenVK cannot
import for some pixel formats, and the first error line mpv logged was
shown as fatal even when playback recovered. Decode with
videotoolbox-copy, and surface an mpv error only when the file actually
ends with one (B70).