Reputation: 9398
This is a followup to my old question, which was, I think, too specific to get an answer.
Generally speaking, how do I serve HTML5 video over http?
Assuming a 233 MB H.264 file, do I just write
HTTP/1.1 200 OK
Content-Type: video/mp4
Content-Length: 232725251
and then try to push 232725251 bytes into the socket, or is there more to it?
Is this at all documented anywhere?
Upvotes: 4
Views: 558
Reputation: 42075
That's it, unless the client asks for a specific range (that's defined in http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p5-range-21.html).
Upvotes: 1