News for hackers. Stuff that matters.
Re:Why HTTP Streaming? by socketpuppet on Monday April 18, 2011 @04:01PM (#2460396)
There isn't really much benefit of using chunked encoding for streaming video, if you're not generating the video on the fly server-side.

If you are simply streaming a stored video, you can just get the file size, use that as the content-length, and send the video. If the content is in a streamable format the client can just read/play the data as it is received. Chunked encoding will in fact add a little overhead to just sending as is.

Chunked encoding is more apt for situations where you don't know beforehand how much data you are going to send.

There are no comments on this comment yet.