362 Commits
Author SHA1 Message Date
nvrl b40b0c522d Merge pull request #26 from narrrl/fix/player-no-lua-osc
fix(player): start on a libmpv built without Lua
2026-11-23 13:38:22 +01:00
nvrl 6383f26693 feat(android): drive the app with a TV remote
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.
2026-11-23 13:37:54 +01:00
nvrl e1cd344f79 Merge pull request #25 from narrrl/docs/install-32bit
docs: the Android APK also runs on 32-bit ARM
2026-11-23 13:37:53 +01:00
nvrl b8f8ebd5c2 fix(app,player): destroy the mpv core off the ui thread
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.
2026-11-23 13:28:08 +01:00
nvrl d7b7efc8f0 fix(player): start on a libmpv built without Lua
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.
2026-11-23 13:28:08 +01:00
nvrl a102ccd880 docs: the Android APK also runs on 32-bit ARM 2026-11-23 02:23:57 +01:00
Nils Pukropp 1f67c92833 chore(aur): update packages to 2.2.0 2026-11-23 01:16:20 +00:00
nvrl 0a996c65f5 Merge pull request #24 from narrrl/fix/rpm-metainfo-dir
fix(packaging): spell out the metainfo path in the RPM spec
v2.2.0
2026-11-23 01:45:02 +01:00
nvrl 082d388491 fix(packaging): spell out the metainfo path in the RPM spec 2026-11-23 01:35:43 +01:00
nvrl 89a8d48a11 Merge pull request #21 from narrrl/release/2.2.0
Release 2.2.0
2026-11-23 00:37:42 +01:00
nvrl e5195893ad Merge pull request #23 from narrrl/feat/aur
AUR packages: proton-stream, -bin and -git
2026-11-23 00:37:23 +01:00
nvrl a29c5328fd Merge pull request #22 from narrrl/fix/ci-robolectric-cache
ci(android): cache Robolectric's android-all jars
2026-11-22 23:32:38 +01:00
nvrl 7e958ae7d8 feat(packaging): AUR packages proton-stream, -bin and -git, published on release 2026-11-22 23:28:02 +01:00
nvrl 17e74b2a14 ci(android): cache Robolectric's android-all jars 2026-11-22 23:10:05 +01:00
nvrl 64aa2e6c68 chore(release): bump version to 2.2.0 2026-11-22 23:09:42 +01:00
nvrl a84f988b3e Merge pull request #20 from narrrl/feat/drive-tree-changes
Crawl own-Drive folders when Drive reports a change
2026-11-22 21:01:05 +01:00
nvrl c896693ff8 feat(core,app,android,ios): crawl own-Drive folders when Drive reports a change
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.
2026-11-22 19:19:08 +01:00
nvrl 12aa7f18de Merge pull request #19 from narrrl/feat/flatpak
feat(packaging): Flatpak manifest and build script
2026-11-22 17:47:24 +01:00
nvrl 67d152980f Merge pull request #18 from narrrl/fix/sign-out-refresh-race
fix(core): don't store a refreshed session after sign-out
2026-11-22 17:47:14 +01:00
nvrl b00478c378 Merge pull request #17 from narrrl/refactor/media-stream
refactor(stream): use the stream engine from proton-media-rs 0.2.0
2026-11-22 17:46:58 +01:00
nvrl 14e64dbf9d Merge pull request #16 from narrrl/fix/android-armv7
fix(android): ship armeabi-v7a for 32-bit Android TVs
2026-11-22 17:46:50 +01:00
nvrl 0d31654bf0 fix(core): keep a refresh after sign-out from storing the session again
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.
2026-11-22 17:15:11 +01:00
nvrl 8ab7d429af refactor(stream): build on proton-media-rs 0.2.0's stream engine
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.
2026-11-22 17:09:32 +01:00
nvrl 39f59e7e0c Merge pull request #15 from narrrl/fix/windows-4k
fix(app): run on the discrete GPU and buffer 4K on Windows
2026-11-22 16:51:58 +01:00
nvrl 76ff90506c fix(android): ship armeabi-v7a for 32-bit Android TVs
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
2026-11-22 16:49:58 +01:00
nvrl 6ccc0c5e69 fix(app): run on the discrete GPU and buffer 4K on Windows
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.
2026-11-22 16:36:49 +01:00
nvrl 3daddceabe Merge pull request #13 from narrrl/feat/store-metadata
feat(packaging): AppStream metainfo and fastlane store metadata
2026-11-22 14:42:40 +01:00
nvrl 1934f0e087 feat(packaging): Flatpak manifest and build script
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
2026-11-22 14:04:52 +01:00
nvrl fd641042ab feat(packaging): AppStream metainfo and fastlane store metadata
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
2026-11-22 13:10:26 +01:00
nvrl f55de02df6 Merge pull request #12 from narrrl/fix/launcher-icon-background
fix(android): put the launcher icon on a deep violet plate
2026-11-21 01:25:44 +01:00
nvrl e5eb4afb5b fix(android): put the launcher icon on a deep violet plate
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.
2026-11-21 01:22:29 +01:00
nvrl 5d6cbad3c9 Merge pull request #11 from narrrl/refactor/sdk-login
refactor(core): sign in through proton_sdk::login
2026-11-20 17:29:44 +01:00
nvrl 646db3a61b refactor(core): sign in through proton_sdk::login
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.
2026-11-20 17:26:20 +01:00
nvrl 1aa2c88c12 Merge pull request #10 from narrrl/refactor/shared-sign-in
refactor(core): sign in through proton_auth_rs::session
2026-11-20 15:53:19 +01:00
nvrl fe93942420 refactor(core): sign in through proton_auth_rs::session
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.
2026-11-20 15:37:59 +01:00
nvrl 169f3f9c37 Merge pull request #9 from narrrl/feat/persistent-pictures
feat: keep thumbnails and artwork in the shared picture cache
2026-11-20 14:19:33 +01:00
nvrl c4b0165f7d feat: keep thumbnails and artwork in the shared picture cache
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.
2026-11-20 14:18:57 +01:00
nvrl f7f86fef53 Merge pull request #8 from narrrl/refactor/proton-media-rs
refactor(stream): block maps, single flight and disk cache from proton-media-rs
2026-11-20 13:18:52 +01:00
nvrl f786bf489f Merge pull request #7 from narrrl/refactor/proton-base-rs
refactor(core): migrations and atomic config writes from proton-base-rs
2026-11-20 13:00:17 +01:00
nvrl b23614f2ff refactor(stream): block maps, single flight and disk cache from proton-media-rs
pstr-stream keeps its BlockKey-keyed DiskCache as a thin wrapper over
proton_media_rs::DiskCache, with the node UID as the file identity, so
caches written by earlier versions are adopted unchanged.
2026-11-20 12:59:36 +01:00
nvrl c97072e633 Merge pull request #6 from narrrl/refactor/proton-rs
refactor(core): keep secrets through proton-auth-rs; rusqlite 0.41
2026-11-20 12:27:26 +01:00
nvrl 7354a59636 refactor(core): migrations and atomic config writes from proton-base-rs
The catalog migrates through proton_base_rs::Schema with the same 14 steps
and refuses a newer database before any pragma touches the file.
write_json now uses proton_base_rs::atomic::write: a unique temporary file
per write, and config files readable by the owner only.
2026-11-20 12:10:17 +01:00
nvrl 9cebd1fe0f refactor(core): keep secrets through proton-auth-rs; rusqlite 0.41
The desktop credential store is now proton-auth-rs, shared with
proton-drive-linux and Proton Gallery, instead of keyring 3 and a local
chunking module. It reads the entries keyring 3 wrote and the chunk
header this app wrote, so saved shares and the account session survive
the move. It also reconnects once when the Secret Service restarts.

KeyringSecretStore becomes pstr_core::keyring_secrets(), one store per
process. Android and iOS keep their own SecretStore through the bridge.

rusqlite goes from 0.32 to 0.41: the suite links one bundled SQLite.
2026-11-20 12:01:55 +01:00
nvrl 3f028fa4cc fix(android): drop the activity label that only repeats the app's
Lint's RedundantLabel failed the Android checks of the v2.1.0 release.
v2.1.0
2026-11-18 03:02:34 +01:00
nvrl c0298dab38 chore(version + deps) 2026-11-18 02:01:30 +01:00
nvrl 3d6aa3c64c feat(branding) logo + app icon 2026-11-18 01:44:14 +01:00
nvrl a475ad3575 docs: 2.0 screenshots of the library, the whole library and a title page 2026-10-31 14:38:47 +01:00
nvrl da13f0547e chore(release): bump version to 2.0.1 v2.0.1 2026-10-31 14:14:45 +01:00
nvrl 4ca57d9449 fix(android): a chooser in the player no longer closes on its own
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.
2026-10-31 14:12:28 +01:00
nvrl c9925b4b09 chore(release): bump version to 2.0.0 v2.0.0 2026-10-31 03:42:32 +01:00