video playback

Aug 30, 2013 at 1:02 AM
are there any plans to support video playback or streaming?
Aug 30, 2013 at 1:05 AM
Hi silvermang,

Can you be more specific? Both our http_client and http_listener already support HTTP streaming. You can pass a stream as the body of a message when making an http_request or http_response.

Thanks,
Steve
Aug 30, 2013 at 5:08 PM
Hi Steve,

I just started looking at the project yesterday, so, I have not had time to dive deeply into the code. By "streaming" do you mean chunked transfer encoding? For video playback I meant seeking to time positions in a video to begin playing instead of playing the entire video from beginning to end.

Greg
Aug 30, 2013 at 8:39 PM
Hi Greg,

To be more specific with our HTTP library whenever you provide a length with the data for a message body (using a string, or a stream with a length) we set the Content-Length header. If no length is provided, i.e. only a stream, then we specify the Transfer-Encoding: chunked header.

In regards to video playback, the HTTP protocol has nothing specific about videos. One thing you can do is use the Range header field in the client's request. You can request a server to return only a byte range portion of the video, this can be used to support seeking. Please note though not all HTTP servers are required to support byte range operations.

Thanks,
Steve