Skip to content

fix: playback resume quality, client-cancel errors, render-stall false alarms, series enrich race, read-ratio counters - #111

Merged
gravity-zero merged 6 commits into
devfrom
fix/web-resume-quality
Nov 18, 2026
Merged

gravity-zero merged 6 commits into
devfrom
fix/web-resume-quality

Conversation

@gravity-zero

Copy link
Copy Markdown
Contributor

Web player

  • A stream token that lapses during a pause no longer drops the pinned rung: hls.js clears a manual level on any 4xx fragment error unless preserveManualLevelOnError is set, which handed playback to the free ABR the player keeps off.
  • A bandwidth step in Auto switches with loadLevel (after the buffer) instead of currentLevel (flush): no stall and one encoder per rung instead of two. The viewer's own pick and a render cap still switch at once.
  • The render-stall watch no longer reports a resume after a pause, or a tab coming back from the background, as a slowdown: the window that holds the pause is skipped and the first interval after it is not measured.

Server

  • Every gRPC handler turns its failure into a status through internalError, so a client that gave up answers Canceled (DEBUG) instead of Internal (ERROR + 5xx). A contract guard refuses the hand-written form.
  • Two writers on one item no longer fail on media_trailers_pkey; the seasons and episodes of a new series share one enrichment of the series (singleflight).
  • A watcher scan refused because one is already running is logged at INFO (the debounce re-arms it).
  • The GetMediaItem not-found WARN carries the item id.
  • The mkvgo read-ratio WARN carries the table builds and evictions, the slot waits, the stream fallbacks and the plan's Stat calls.

Tests

Each fix has a test that was red before it: hls.js config, resume cancel codes, trailer race on a real Postgres (8 concurrent writers), busy-scan log level, render-stall pause and hidden tab, series enrich count (6 searches to 1), Stat counter (integration). make gate green on the head.

…a bandwidth step switches after the buffer instead of flushing it
… a resume after a pause is no render slowdown, concurrent writes keep an item's trailers, a busy scan is no watcher error, and a missing media item is logged with its id
… (guarded), a hidden tab is no render slowdown, and a new series is enriched once for all its seasons and episodes
…ns, the slot waits, the stream fallbacks and the plan's Stat calls
@gravity-zero
gravity-zero merged commit 9ebb697 into dev Nov 18, 2026
9 checks passed
@gravity-zero
gravity-zero deleted the fix/web-resume-quality branch November 18, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant