Skip to content

Keep valid HLS startup after floating-point playlist refreshes - #46

Merged
TheCryptoDonkey merged 1 commit into
mainfrom
fix/startup-position-roundoff-20261027
Oct 27, 2026
Merged

TheCryptoDonkey merged 1 commit into
mainfrom
fix/startup-position-roundoff-20261027

Conversation

@TheCryptoDonkey

Copy link
Copy Markdown
Member

An Hls.js playlist refresh can change a fragment start from 10.64 to 10.640000000000004. Exact comparison then cancels a valid pending startup as changed media. Accept only machine-precision round-off in start/duration, capped at one nanosecond; keep immutable media identity, actual geometry changes, authority, resource and deadline checks intact.

The regression fails on the preceding public source and passes with the fix, preserving the exact original response/statistics/context and single terminal callback. It also checks real start/duration changes and the absolute cap on a large timeline. Update the API, status, changelog and generated AI context. Sustained playback and physical-device acceptance remain separate.

Validation: 128/128 warm-ahead tests, 19 targeted startup/framing checks, 202-module syntax, documentation and diff checks passed before push.

@TheCryptoDonkey
TheCryptoDonkey merged commit 0d47dec into main Oct 27, 2026
17 checks passed
@TheCryptoDonkey
TheCryptoDonkey deleted the fix/startup-position-roundoff-20261027 branch October 27, 2026 22:17
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