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.
The desktop takes the suite's look: the nav floats as a rounded bar with
the Stream mark, buttons and tabs are pills, cards round to 12, and
new-episodes badges and the rating star wear the palette's copper.
About shows the mark, the version and the suite.
Keyboard focus was nearly invisible on the dark pages. Every focusable
widget now draws a 2px accent ring with a copper inner edge, and a
focused segmented chip no longer shifts its row. Palette cards ellipsise
long names instead of overlapping.
DESIGN-TOKENS gains the suite's shared tokens, shapes and focus, and the
desktop screenshots are retaken.
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 window froze for up to a second when an episode ended or the next
one started ("ui thread blocked for 1092 ms drawing the player page").
The UI thread's VideoSurface held the last handle to mpv, so dropping a
stopped Playback freed the render context and then ran mpv_destroy in
the frame, waiting for the demuxer and audio output to wind down. After
an end of file the player thread had not even sent `quit` (B69).
- The player thread sends `quit` on every way out.
- VideoRenderer frees the render context on the GL thread as before,
then hands the core to an `mpv-teardown` thread. on_exit holds a
handle across the drop so the core still dies before the process.
- app::timed names the remaining blocking parts at 100 ms: dropping
the stopped player, rendering the video and mini picture, and
rebuilding the library view.
The Flatpak builds libmpv with -Dlua=disabled, and mpv only declares its
`osc` option when Lua is built in. Player::new set it for the embedded
player and the window fallback alike, so both failed with
MPV_ERROR_PROPERTY_NOT_FOUND and every episode ended in the toast
"start mpv: mpv: Raw(-8)" (B68).
A missing `osc` now counts as already off; every other option still
fails as before. mpv errors are shown by mpv's own name instead of
libmpv2's Debug output.
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.
Refresh tokens are single-use, so every refresh is written back. The callback
outlived a sign-out: the crawl and sync tasks keep the session alive, and
offline it cannot be ended, so a later refresh stored it again and the next
launch came back signed in. A second sign-in raced the same way.
Each sign-in and sign-out now starts a generation, and a refresh writes only
while its generation is current, checked under the lock the delete holds.
Sign-out deletes before ending the session. B67.
The ring, StreamSource, VideoStream, disk cache glue and RevisionBlocks
moved to proton_media_rs::stream. pstr-stream keeps LibraryOpener and
re-exports the rest under the old names, keyed by NodeUid, so the app,
the Android bridge and the player tests are unchanged. The disk cache
key is the same string, so existing caches still hit.
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
4K HEVC 10-bit stuttered on a Windows laptop with an RTX 3050 (B66).
- proton-stream.exe exports NvOptimusEnablement and
AmdPowerXpressRequestHighPerformance, through a .def file build.rs
hands the linker, so hybrid-graphics drivers start it on the discrete
GPU instead of the iGPU that owned the GL context mpv renders into.
- The desktop mpv buffer ceiling is 256 MiB instead of 48 MiB, about
five seconds of a 4K remux. Safe above the block ring because the app
runs block read-ahead at 0 (B8). Android keeps 48 MiB.
The manifest builds the checkout offline on the GNOME 51 runtime, with
libass, libplacebo and libmpv as modules and every crate vendored through
cargo-sources.json. scripts/build-flatpak.sh regenerates the sources,
builds, optionally installs, and bundles into dist/.
Sandbox: network, Wayland with X11 fallback, DRI, PulseAudio, the Secret
Service, notifications and the MPRIS name. The screensaver inhibit goes
through the portal, which needs no extra permission.
Refs #3
Groundwork for Flathub (#3) and F-Droid/IzzyOnDroid (#4).
- packaging/io.narl.proton-stream.metainfo.xml, installed by every Linux
package and validated in CI next to the desktop entry
- fastlane/metadata/android/en-US with listing text, screenshots, the
icon (rendered by render-branding.py) and per-version changelogs
- release.yml refuses a tag without a matching metainfo <release> and
fastlane changelog
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.
proton-sdk 0.12.2 carries the sign-in steps, so account.rs uses
proton_sdk::login and stores from ResumeParameters; the stored layout is
unchanged. Share tokens come from the SDK's parse_public_link_url with
Stream's own messages; a link with an empty #fragment is now refused at
add time too.
The sign-in steps (CAPTCHA retry, second factor, mailbox password, key
unlock) are now the sequence Proton Gallery and proton-drive-linux share.
The stored proton-account blob and its refresh write-back are unchanged.
Proton thumbnails (desktop and Android) and provider artwork go through
pstr_core::pictures, a thin layer over proton-media-rs ImageCache: a
256 MiB budget each with least recently used eviction, entries a crash
cannot leave half-written, and hashed paths so no share id, link id or
URL reaches the filesystem. Before, both directories grew without limit
and the desktop wrote entries in place.
The stores live in cache/thumbnails and cache/artwork; the flat thumbs
and posters directories of earlier versions are deleted on first use,
so each picture is downloaded once more.