hwdec is now mediacodec,mediacodec-copy with every codec allowed. The
direct decoder goes through mpv's aimagereader interop, which loads with
the render context and needs no SurfaceView: frames arrive as
AHardwareBuffers sampled through EGLImages, never copied through memory.
On a Pixel 6 the 4K AV1 file that leaked a frame per frame in copy mode
(B80) now plays in hardware at flat memory, without the green line, and
with a sixth of dav1d's dropped frames.
The copy path stays as the fallback for devices whose interop fails. An
AV1 file that lands there switches to software, since that path leaks.
B49's reasoning (no window, so copy only) is corrected.
Every file now logs one line naming its codec, size, pixel format and
decoder, in release builds too. B80 needed a phone restart to find because
nothing said mediacodec-copy.
Debug builds read mpv option overrides from debug.pstr.mpv.* system
properties (adb shell setprop), so decoder and buffer experiments on a
phone need no rebuild: hwdec, hwdec-codecs, gpu-hwdec-interop, the demuxer
limits, a free-form extra list, the log level that reaches logcat, and a
ten-second drop and cache line. mpv log levels below warn map to the
matching logcat priority.
On a Pixel 6, 4K AV1 through av1_mediacodec in copy mode lost about one
frame-sized buffer per frame below the app. MemAvailable fell from 4.3 GB
to 67 MB in 18 seconds, the system server died and the phone restarted.
The copy path also drew a green line along the bottom of the picture.
Set hwdec-codecs to mpv's default list without av1, so AV1 goes to dav1d.
Other codecs keep the hardware decoder. See docs/BUGS.md B80.
- 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.
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.
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.
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.
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 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).
The currents are now pre-cut paths instead of a clip, which moves the
anti-aliasing of a few edge pixels in the top bar's mark. Nothing else
in these eight captures changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Qt shells and launchers drew the Stream icon as a folder: the currents
were oversized shapes clipped to the prism with a clip-path, and QtSvg
ignores clip-path, so they spilled out as a pale slab. They are now cut
in their own paths; rsvg renders the same pixels. The generator refuses
a clip-path in a Drive or Stream mark, since that SVG ships as the
desktop icon.
The iOS icon stood on a pale lavender square. It now takes Android's
deep violet plate and the crop a launcher shows, so both phones show
one icon.
Roadmap C4. On a television:
- Continue watching also appears on the launcher's home screen, in its
Play Next row (TvContract.WatchNextPrograms, WRITE_EPG_DATA), with the
place and length, the provider's art and synopsis, and the episode's own
name and numbers, never a file name. A card plays its episode through
ACTION_PLAY_EPISODE. A card the viewer removed stays off until that
episode is watched again. Settings → Playback has a switch, on by
default and shown only on a TV.
- The Search page has a mic beside the field, and the remote's Search key
opens Search listening from any page (RecognizerIntent).
- The assistant's "search for … on Proton Stream" (SEARCH, SEARCH_ACTION)
opens Search with what was said; "play … on Proton Stream"
(MEDIA_PLAY_FROM_SEARCH) plays the one title of that name from where
the viewer is, else shows the search. A search from outside the field
moves the focus to its results without leaving a keyboard over them.
Fast-forward and rewind through the media session were already in place
from C1.
Android CI on main failed after v2.3.0 merged: DownloadStateStoreTest,
ScreenshotTest and TvTest all died in MavenArtifactFetcher with an
IOException. Robolectric downloads its Android runtime from Maven Central
by itself while the tests run, outside Gradle, so one dropped connection
fails every Robolectric test. The actions/cache meant to keep that jar never
held anything: a run that fails on the download saves no cache.
Gradle now downloads android-all-instrumented for API 34 like any other
dependency, with its retries and the Gradle cache CI already restores, and
the tests run with robolectric.offline against that copy. The cache step
goes.
Typing a share link on a remote is the worst part of setting up a TV.
Add share on a TV now shows a QR code instead. The phone's camera opens
a page the TV serves on the home network, the link is pasted there, and
the TV opens it through the same path as the typed form. A refusal (a
wrong password, an incomplete link) goes back to the page with the link
kept, so it is fixed where the keyboard is. The phone needs nothing
installed.
pstr-core::handoff listens on the TV's private IPv4 address only, under
a random 60-bit path, for ten minutes or until a share is added. The page
runs no script and its CSP allows none; requests are size- and
time-bounded. It is plain HTTP, which PRIVACY.md states, and "Type it
instead" keeps the ordinary form.
uniffi's generated BridgeException.Failure spells its message out as
`reason=…`, so every refusal the app showed (a link that will not open,
a failed sign-in, a download, a snackbar) began with the field's name.
`Throwable.reason` reads the field itself, and every place a failure is
shown uses it.
Proton now wears the plum neutrals and violet of Proton Drive and Proton
Gallery, and its Mauve gradient runs into the icon's orchid. Proton Light
is the suite's light page, and Copper joins the accents. Every palette
carries a highlight, copper on the Proton flavours, which new-episodes
badges, the rating star and the TV focus ring wear.
Android takes the suite's radii (12 cards, 16 sheets, 24 floating, pill
buttons), shows the mark in the Library bar, About and empty states,
and the TV type ramp moves to Inter at tv-material's sizes. Title actions
shrink to fit rather than ellipsise at large font sizes, now pinned by a
360dp, 2x font capture. iOS mirrors the palette, radii and choices.
The play prism was the one bare glyph in the suite: Drive's folder carries
documents and Gallery's plate carries hills and a sun. Lilac and pink
currents now flow through the prism toward its point. The outline is
unchanged, so the themed launcher icon and the status-bar mark keep the
plain play shape.
The TV banner sets its name in the bundled Inter through a fontconfig that
sees only those files, so no installed font can change its pixels, and
download notifications use the monochrome mark instead of the coloured
launcher foreground. The plain prism is kept in images/branding-archive.
Ran the TV UI on an Android TV emulator with a real library and fixed
what came up:
- The app started with the focus in the menu, not on the page.
- Left from a card landed on the menu entry level with it, not on the
page that is open.
- Down on the search field stayed in the field, so the results could
not be reached.
- Compose's TV scrolling stops a third of the way in, which cut the row
above in half on Home and scrolled a title's name away under Play.
Rows on Home now line up under the top, and a title page, search and
a genre page scroll only as far as needed.
- Home showed My List twice: as its own row and as the core's shelf.
- A focused episode's text was dark on a dark surface.
On a television MainActivity now composes ui/tv/TvApp instead of the
phone's ProtonStreamApp: the same AppViewModel, library, account and
player, laid out for a screen across a room on androidx.tv:tv-material.
- A navigation drawer down the left edge: Home, Search, History,
Downloads, Shares, Settings.
- Home: the focused title's backdrop, name and synopsis at the top,
following the focus after a short pause, and rows of Continue
watching, My List, the shelves and every title under it.
- A title's page opens with Play focused, then Start over, My List and
Mark watched, season chips, episodes with stills and synopses, the
franchise and More like this.
- Search and Browse pages; OK on the field opens the TV's keyboard or
voice input.
- Menu, or holding OK, opens a focusable menu where a phone has a long
press. Rows remember the card they were left on.
- The player covers everything and nothing is composed under it.
Leaving the video stops it: a TV has no mini player.
- History, Downloads, Shares and Settings are the phone's pages inside
the overscan margins for now.
Issue #5: on an Android TV the app installed but needed a touch screen.
This is the groundwork both the phone UI and a later dedicated TV UI
need.
- The focused control is outlined in the accent, and artwork grows a
little, instead of Material's ten percent tint.
- The Menu key opens what a long press opens: the Continue watching
and tile menus, and "Mark watched up to here" on an episode.
- Closing a title gives the focus back to the tile it was opened from.
The featured banner stops turning while one of its buttons is
focused.
- Player: a key press keeps the controls up, and Play takes the focus
when they appear. Skip, Up next, the end card and Retry take the
focus when they show, and Back hides the controls first. Rewind and
fast-forward seek 10 s, also from the media session. Next, previous
and stop work too. A TV has no rotation lock or touch lock.
- On a TV: navigation rail, single pane, overscan margins, a shorter
banner, and a CAPTCHA window that fits a 540 dp screen.
The crawl and ShareClient now come from proton-drive-tree-rs: DriveTree is
the old ShareClient, and walk is the old parallel, retrying crawl plus a
cycle check. A crawl of an account folder also records where Drive's change
feed stood and which nodes it found.
The desktop app polls the feed every 2 minutes and crawls the account
folders that changed. Android and iOS do the same in their 5-minute loop
through the bridge's new changed_shares. Public links have no feed and keep
the 6-hour recrawl.
Many Android TVs run a 32-bit userspace on a 64-bit SoC. The APK had only
arm64-v8a and x86_64 native libraries, so the package installer rejected
it there as "not compatible with your TV" before it ever ran.
libmpv (mpv-android's armv7l target), the Rust core (cargo-ndk) and the
JNI shim now build for armeabi-v7a too, and CI installs the
armv7-linux-androideabi Rust target. Adds about 43 MB to the APK.
Refs #5
Launchers mask the adaptive icon background into a circle. The light
background showed as a pale disc around the mark on dark home screens.
The plate is now a deep violet radial gradient that frames the copper
rim.
The episode, track, speed, chapter and sleep choosers and the More menu
live inside the player's controls, and the controls hide four seconds
after they come up while the video plays. Hiding them took the open
chooser with them, so a sheet being picked from closed at what looked
like random. The controls now hold still while a chooser is open.
The banner height came from Configuration.screenHeightDp, which lint now
rejects in favour of LocalWindowInfo's container size; the four phone
library screenshots move by a pixel with it. The mood colour scaled its
picture with Bitmap.createScaledBitmap where lint asks for the KTX
Bitmap.scale.
Choosing an audio or subtitle track read the track list back before mpv
had made the switch, so the tick stayed on the old track until the next
poll. The tick now moves on the choice, and the list is read again
300 ms later to confirm it.
On Android, `load` set `alang` and `slang` only when they were not
empty. mpv keeps both across `loadfile`, so a file with no language
preference took the previous file's. Both are now set on every load.
This closes the last open item of B41.
On Android and iOS a swipe up or down on the left half of the picture
sets the brightness and on the right half the volume; a sideways swipe
seeks, showing where it will land and seeking only when the finger
lifts. Swipes that start at the top or bottom edge are left to the
system. Android turns the device's media volume; iOS lets no app do
that, so there the swipe turns the player's own, as its slider does.
Brightness set by a swipe is handed back when the player goes.
Lock touch, in the player's menu, makes the picture ignore touches and
the back gesture; a tap brings up Unlock for a few seconds.
The sleep timer pauses after 30 or 60 minutes, or stops at the end of
the episode playing instead of going on to the next, with no up-next
card. On the desktop it is a panel like the others, behind a moon
button that shows what is left; on Android and iOS it lives with the
player host, so it keeps running with the screen off.
Most files that are not fansub releases carry no chapters, so they had no
skip button. AniSkip knows where an episode's opening and ending are, by
MyAnimeList id and episode number. ani.zip sends each entry's MyAnimeList
id and enrichment now keeps it on every episode row; schema v14 adds the
column and marks AniList titles un-enriched, deleting nothing, as v13 did.
When a file has loaded with no chapter naming an opening or ending, and
its length is known, each client asks once, with enrichment on only. The
answer lives as long as the file is open. with_skip_ranges cuts it into
the chapters as chapters named Opening and Ending, so the skip button,
auto-skip, the up-next countdown and the seek bar's marks all work
through the code a chaptered file uses. A file's own opening or ending
always wins over AniSkip's.
PRIVACY.md lists what is sent: the MyAnimeList id, the episode number and
the file's length.
The turn was a LaunchedEffect keyed on the pager's current page, and the
current page flips half way through a scroll. The effect restarted there,
cancelling its own animation and leaving two titles side by side until
the next swipe. It is keyed on the settled page now.
AniList's fragment now asks for the first ten characters, main roles
first, with their Japanese voice actor, and for the trailer's site and
id. Both are stored in the existing details JSON as TitleDetails.cast and
.trailer with serde defaults, so no migration is needed and details
stored before them still read. The details REVISION goes to 2, so a
stored match is refetched by its id on the next metadata run and the
cast fills in without anyone matching the title again.
The title page shows a Cast row of round portraits with the character's
name over the actor's. Clicking a tile opens the Person browse page for
that actor, which now also admits voice actors, and search counts them
under People and studios. A Trailer button opens the YouTube or
Dailymotion page in the browser; the app itself makes no request to
either, and an unknown site or an id with odd characters gives no link.
A search now also finds, with posters and descriptions on, the directors
and studios and the genres whose names hold it, as chips that open their
page, and the episodes whose provider names hold it, which play from the
result (pstr_core::discover::find). The titles it found follow under
their own heading.
The last eight searches are kept in recent-searches.json on this device
only (pstr_core::recent), written only when a search led somewhere, and
offered under the empty search box with a way to clear them. The bridge
exposes search_extras, recent_searches, remember_search and
forget_searches.
On Android and iOS the library's titles are now the whole library
whatever is searched for; the grid narrows through the arrangement, as
it already did. A title opened from an episode result can then always be
shown, and History and Downloads no longer shrink to the search.
pstr_core::discover scores every title against another by shared
director, studio, genres, leading tags and format, leaves out its own
franchise and keeps one title per other franchise. It drives a "More
like this" row under a title's episodes and, seeded by the title most
recently watched to the end, a "Because you watched" row on the library
of titles not yet started.
Genre chips on the title page now open a page of every title with that
genre, and the studios and director move from the line of facts onto
chips of their own that do the same. The desktop has a Browse page whose
back link returns to the title; Android and iOS show it over the library
pane. The bridge exposes more_like, browse and facet_kind.
Also moves a doc comment the My List commit left on the wrong function.
My List is a list of titles to watch later, kept in my-list.json by
title key (pstr-core::mylist) and synced as one list/<key> register per
title, so an add or a removal on one device reaches every other. A list
file that will not parse is never written over: changing the list is
refused instead. It is a filter, a row on the library, a button on the
banner and the title page, and an entry in each tile's menu.
pstr-core::news reads node_first_seen against each share's first crawl,
so a newly added share does not badge its whole library. A title that
arrived in the last two weeks and was never played is New; a series
being watched counts the unwatched episodes that arrived after it was
last played ("3 new"). They fill the tile badge and the "New episodes"
and "Recently added" rows. shelves::home puts every row in one order
for all three apps, and a shelf tile of an airing show shows a
countdown ("Ep 8 · in 2 d").
The bridge gains TitleRecord.on_list and .badge, set_on_list, the
MyList filter, airing_countdown and SyncRecord.list_changed.
A title page now says where the show stands as a chip beside the
quality marks: Airing with the day the next episode comes out, Finished,
Upcoming, On hiatus or Cancelled. The words come from
TitleDetails::status_label, which the bridge hands the phones as
TitleRecord.status; the airing note leaves the line of facts.
A show with more than five seasons picks its season from a drop-down
rather than a row of pills that ran off the page, and a watched
episode's still carries a tick in its corner as well as the mark at the
end of its row.
On a phone the backdrop at the top of a title page now moves at half
the speed of the page scrolling over it, and the back button sits in a
bar that fills in with the title's name once the backdrop has gone, so
a long episode list still says whose it is. The fade into the page is
tinted with the backdrop's colour, as on the library's banner.
iOS keeps its slide in from the edge: the zoom transition needs a
NavigationStack, and the title page is shown over the library by hand.
The library's banner now runs edge to edge and turns through up to five
titles: the one watched last, then titles with a wide picture, starting
from a different one each day. It moves on every eight seconds, holds
still under the pointer, and has dots to pick a title. A part-watched
title shows how far in the viewer is under its buttons.
The veils over the banner and over a title page's band are tinted with
the picture's own colour. The weighting and the veil live in
pstr_core::appearance (mood, mood_veil), so the desktop and both phones,
which reach them through the bridge, land on the same colour.
On Android the banner is a HorizontalPager under a clear bar that fills
in as it scrolls away; iOS uses a paged TabView the same way.
A first pass at making the three clients look like a streaming app rather
than a file browser, with no new data behind it.
- Type: a Hero rung (34) set in Inter Display Bold, the optical size Inter
draws for large text, for the banner's name and a title page's name where
no logo stands in. Desktop `Role::Hero` and `theme::display`; Android and
iOS `displayLarge`, at a tighter 1.1 leading. The font has its private use
mappings stripped like the other two cuts.
- Artwork fades in over its skeleton on Android and iOS, as it already did
on desktop cards; art already decoded draws at once. Desktop episode
stills and logos fade in too.
- Skeletons shimmer: a soft diagonal highlight instead of a pulse.
- Desktop tiles lift towards the viewer under the pointer, capped so a
lifted tile never reaches its neighbour, and keyboard focus gets a ring
of its own.
- Desktop shelves share one `ui::shelf`: edges fade into the page and, under
the pointer, round buttons page the row along.
- Genres are chips on Android and iOS; quality (4K, HDR, 10-bit, Dual audio)
moves out of the facts line into small outlined marks on all three.
- Desktop title page and hero buttons use a tonal style beside the accent
one, and the player's top bar a dark glass style, instead of egui's stock
buttons. Episode numbers leave monospace for the type ramp.
- The phone players' top and bottom bars are gradients rather than flat
bands, and a double-tap seek is felt as well as seen.