To create a feature that addresses this within the Bun runtime context, I propose a new , specifically optimized to handle partial content requests, automatic range header parsing, and efficient memory management to prevent leaks, as described in Github discussions. Proposed Feature: Bun.serveVideo 1. Functionality:

Description * What version of Bun is running? 1.1.21+70ca2b76c. * What platform is your computer? Microsoft Windows NT 10.0.22631.

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.

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.

Do you need to support (transcoding) or just streaming ? I can refine this feature proposal further.

Leveraging Bun.file (which provides lazy loading of files) to stream directly without loading the whole video into memory. 2. Example Usage: javascript

Removes the need to manually manage 206 Partial Content headers. If you can tell me:

Bun does not support streaming videos with range requests #10440

Quý khách vui lòng liên hệ tổng đài 
để được hỗ trợ.
 

logo

 

Quý khách vui lòng nhập thông tin để nhận
ưu đãi mới nhất từ FPT Telecom!
 

logo

 

 

logo fpt

 Quý khách vui lòng lựa chọn yêu cầu cần hỗ trợ!

 

Từ 1/5/2016, Tổng đài là nơi tiếp nhận mọi ý kiến đóng góp cũng như yêu cầu hỗ trợ từ khách hàng đối với sản phẩm, dịch vụ của FPT Telecom trên toàn quốc.

icon icon-webmaster