Files
kima-hub/frontend
chevron7 e110b6d77e fix(audiobook): checkpoint progress on a real timer, not the throttled timeupdate
Progress was saved every 30s off the "timeupdate" event, but iOS throttles and
suspends that event when the PWA is backgrounded (screen off) -- the normal way
people listen to audiobooks. So a long screen-off session was never
checkpointed, and an app update (or crash) reverted to the moment the screen was
locked. The saved data was never lost; it just stopped advancing in the
background.

Replace the timeupdate-driven save with a 15s wall-clock setInterval that runs
while playing (started on "play", stopped on "pause"/"ended"), independent of
the media event iOS throttles. saveAudiobookProgress already de-dupes an
unchanged position and the tick is gated on isPlaying(), so paused/stalled ticks
are no-ops. Applies to podcasts too.
2026-06-08 07:23:36 -05:00
..
2025-12-25 18:58:06 -06:00
2026-06-05 20:19:05 -05:00
2026-06-05 20:19:05 -05:00
2025-12-25 18:58:06 -06:00