Skip to content

Fix video suffix byte range responses - #45

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/suffix-byte-ranges
Aug 10, 2026
Merged

Fix video suffix byte range responses#45
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/suffix-byte-ranges

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Summary

  • parse single video byte ranges in a focused helper
  • serve suffix requests such as bytes=-500 from the end of the file
  • return 416 Range Not Satisfiable for empty, zero-length, and out-of-bounds ranges
  • preserve full responses for absent or unsupported range headers

Tests

  • vitest run apps/web/src/range.test.ts --root . (4 passing)
  • eslint apps/web/src/actions.ts apps/web/src/range.ts apps/web/src/range.test.ts
  • focused TypeScript check for range.ts

Closes #44

@ralyodio
ralyodio merged commit bb3ce6e into profullstack:master Aug 10, 2026
4 checks passed
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.

Video stream returns the wrong bytes for suffix range requests

2 participants