Skip to content

HTTP FLV module

winshining edited this page Dec 2, 2017 · 15 revisions

HTTP FLV module is a HTTP module that supports playing live FLV streams through 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

If the players understand 'Transfer-Encoding: chunked;' HTTP header, 'chunked on;' can be set in conf file:

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

If 'chunked on;' is not set or 'chunked off;' is set, the server sends a 'Expires: -1;' HTTP header to the clients by default.

Clone this wiki locally