Skip to content

Conversation

chocolatkey
Copy link
Member

@chocolatkey chocolatkey commented Oct 14, 2025

For the sake of readium/cli#27

  • Fixes bugged Read calls that aren't obligated to return the entirety of a resource
  • Add zran-like reading of ZIP entries. This only applies to the start offset, not the total length of the resources. Particularly useful for e.g. streaming videos where a browser will send Range: bytes=0- then abort when satisfied, which is already hopeless for us to handle. At least when users scrub through video/audio, we can take a Range: bytes=XXXXXX- header and start the remote range request for the resource at the start of the byte range.

Still getting ERROR failed streaming asset error="resource: error 500: flate: corrupt input before offset 5", need to fix that before this becomes a proper PR because there's a bug somewhere

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