当前位置: 动力学知识库 > 问答 > 编程问答 >

Serving HTML5 video over http

问题描述:

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?

网友答案:

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).

分享给朋友:
您可能感兴趣的文章:
随机阅读: