Fixes the reported memory leaks when fetching media.
Bun does not support streaming videos with range requests #10440 bun.mp4
Uses Bun's specialized file handling for faster streaming. Fixes the reported memory leaks when fetching media
Based on the search results, "bun.mp4" appears in issues related to Bun's handling of video streaming (specifically Range requests causing infinite loading) and memory leaks during fetch calls. bun.mp4
Are you primarily building a or a native desktop app with Bun?
Removes the need to manually manage 206 Partial Content headers. If you can tell me:
Instead of manually calculating CHUNK_SIZE and Content-Range headers with fs.statSync (as currently done in Express), Bun.serveVideo would automatically handle this based on the Range request header.