flv_live

The `flv_live` directive enables live streaming of FLV content through the NGINX RTMP module.

Syntaxflv_live stream_name;
Defaultnone
Contextlocation
Arguments1

Description

The flv_live directive is part of the NGINX module designed for RTMP (Real-Time Messaging Protocol) handling, specifically for streaming audio, video, and data over the internet. It allows live streaming of FLV (Flash Video) content to clients. When this directive is enabled within a location block, the server can handle network requests that involve live FLV streams, making it suitable for applications that require real-time media delivery. This directive is particularly useful for live broadcasting scenarios where low latency is essential.

The directive takes one argument, which specifies the name of the stream. When the stream is published, NGINX begins pushing the data to the clients that are subscribed to that stream. It manages connections and buffers efficiently to ensure smooth playback without interruptions. Users can define multiple flv_live directives in different location blocks to manage different streaming channels from the same server.

Config Example

location /live {
    flv_live my_stream;
}

Ensure that the related RTMP module is properly installed and configured before using this directive.

The FLV streaming requires compatible clients that can handle FLV format; otherwise, playback may fail.

Make sure to handle stream publishing correctly to avoid publishing empty streams. If the stream is not correctly setup, clients may experience errors.

← Back to all directives