Remember and restore last playback position per video

Saves playback position to store on pause and periodically every
10s during playback. Restores position (>1s) when the same video
is loaded again, showing a 'Resumed from 0:42' toast.

Files:
- frontend/app.js: resumePositions in data, save in pause/timeupdate,
  restore in Player.afterLoad, boot merge includes resumePositions
This commit is contained in:
Jonathan Sykes
2026-06-14 14:31:19 +08:00
parent 81aced9bc5
commit ddfa1494c6
5 changed files with 38 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ bottom as they come up.
- [x] Loading skeletons for search results instead of a bare "Searching…".
- [x] Keyboard-shortcut help overlay (press `?`), listing space / arrows / f / m.
- [x] Download/preload progress indicator on cards (percent or a bar, not just a pulse).
- [ ] Remember and restore the last playback position per video.
- [x] Remember and restore the last playback position per video.
- [ ] Toast queue (stack multiple toasts instead of replacing).
## Features