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.
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.
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.
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.
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.
docs/ gains pages for people using the app rather than building it:
getting started, installation, the user guide, account and sync,
Android and iOS, the command line, privacy, an FAQ and troubleshooting.
docs/README.md is the wiki's home page.
scripts/publish-wiki.sh, ported from proton-drive-linux, checks every
link in docs/ and README.md, rewrites links between pages to wiki page
names and copies the images they show. The Wiki workflow runs the check
on pull requests and publishes on every push to main.
images/ holds library, title and episode screenshots from the desktop
and Android apps, and the logo.