fix(player): keep playing the current video when it leaves the live feed queue

Auto-marking a video watched near its end invalidates the feed query; the
refetched/reordered queue can no longer contain the playing item, so
findIndex returned -1 and the active item fell back to queue[0] — silently
jumping playback to an unrelated video and defeating Loop "One" (and
auto-advance:off). Pin the last resolved video in a ref and keep playing it
when it drops out of the queue instead of snapping to queue[0].
This commit is contained in:
npeter83 2026-07-05 19:49:39 +02:00
parent 2ee4d563f6
commit 0fff5ad35d
3 changed files with 21 additions and 4 deletions

View file

@ -14,6 +14,14 @@ export interface ReleaseEntry {
}
export const RELEASE_NOTES: ReleaseEntry[] = [
{
version: "0.23.2",
date: "2026-07-05",
summary: "Fixed the player jumping to a different video when the current one is marked watched.",
fixes: [
"Player: watching a video to the end (or otherwise marking it watched) no longer makes playback jump to an unrelated video. This also fixes Loop “One”, which the jump could override — the current video now correctly repeats even after it drops out of the live feed order.",
],
},
{
version: "0.23.1",
date: "2026-07-05",