diff options
| author | Adam Soltys <[email protected]> | 2026-10-13 05:58:33 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-13 05:58:33 +0000 |
| commit | 72705992c3d40f87052ade605c50f60a18f80453 (patch) | |
| tree | aa79f9f44bc10e73a0630ed63213030da5c412a1 /android/app/src/webview | |
| parent | 4e1cd666a06c4ee852586986d0301278d680a614 (diff) | |
| download | coinosv3-72705992c3d40f87052ade605c50f60a18f80453.tar.gz coinosv3-72705992c3d40f87052ade605c50f60a18f80453.zip | |
Media pager: the head start sizes itself to the clip and the link, and a tap pauses any playing clip. Adam: a fixed 512 KB head start isn't right for every clip; and a tap anywhere on a playing clip but the seek bar should pause it. The head start is now seconds of the clip, not bytes: two seconds' worth on a link well ahead of the clip's bitrate, four when only just ahead, and on a link slower than the clip enough to cover the shortfall over its length — at least 256 KB, at most 4 MB, the second clip ahead half. The bitrate is the file's size over its length when the post says both (imeta size and duration; duration is now kept), else guessed from its picture size, else a phone clip's; the link's speed is measured off the head starts themselves (a moving average), and until there is a measure it's two seconds' worth — Chrome's own downlink guess runs low (in the test browser it would have had every first head start at the cap). A reader who swipes on within seconds (a moving average of how long clips hold them) gets just the opening; a clip of 3 MB or less comes whole. A tap on a playing clip in the media grid's Videos pager now pauses it with its details up, as one opened from the feed does; another plays on (it only toggled the details). And mergeFeed's duplicate check now counts the posts waiting a moment to go in together: a copy from a second relay, or another version of an addressable clip, could slip in during that window (video-events-test caught the second, one run in a few). pager-eager-test: clips whose imeta states size and length; two seconds' worth ahead (half for the second) before the link is measured, still that on a fast link measured, the cap (half) on a 3 Mbps link the server paces (the player still takes the opening from the cache there — DevTools' throttling had defeated the cache, not the app); feed-media-views-test checks the tap to pause and play on in the Videos pager.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KPw21NEpWeTGu6swVASmBt
Diffstat (limited to 'android/app/src/webview')
0 files changed, 0 insertions, 0 deletions
