Skip to content

HTTP FLV module

winshining edited this page Apr 6, 2018 · 15 revisions

HTTP FLV module is a HTTP module that supports playing live FLV streams based on HTTP. The following is an example of how to enable playing a HTTP live FLV stream:

http {
...
    server {
        ...
        location /live {
            flv_live on;
        }
    }
}

HTTP Chunked Transmission

Note

Old directive chunked is deprecated now.

If the players understand Transfer-Encoding: chunked HTTP header, chunked_transfer_encoding on; can be set in conf file to enable chunked transmission when responding to the players:

http {
...
    server {
        ...
        location /live {
            flv_live on;
            chunked_transfer_encoding on;
        }
    }
}

If chunked_transfer_encoding off; is set, the server sends Connection: close or Connection: keep-alive HTTP header to the players depend on which header players sent.

Note that chunked_transfer_encoding is open by default for HTTP version 1.1 (HTTP/1.1).

Clone this wiki locally