ts_kmp_flush_timeout

The `ts_kmp_flush_timeout` directive sets the maximum duration to wait before flushing data in Kaltura Media Framework streaming contexts.

Syntaxts_kmp_flush_timeout time;
Defaultnone
Contextstream, stream server
Arguments1

Description

The ts_kmp_flush_timeout directive is designed for the Kaltura Media Framework and is utilized within the context of managing streaming operations. This directive specifies a time limit for how long the server will wait to flush buffered data to clients in a streaming scenario. Specifically, if data is pending to be sent to a client, this directive allows administrators to control the maximum period after which any outstanding data will be sent regardless of whether or not the buffer has reached a threshold size. This can be especially useful in live streaming or high-throughput environments where timely data delivery is crucial to maintain a smooth experience for users.

In practical terms, if the time defined by ts_kmp_flush_timeout elapses, any buffered video or audio data will be automatically sent to the client. This helps prevent excessive data buildup in the buffer, which can lead to increased latency or delays in stream delivery. The parameter passed to this directive should be specified in a time format that NGINX recognizes, such as seconds or milliseconds. Configuring this directive properly is essential to balance between network efficiency and the real-time needs of streaming media, especially under varying network conditions and client demand.

Config Example

stream {
    server {
        ts_kmp_flush_timeout 30s;
    }
}

Ensure the flush timeout does not conflict with other buffering settings that may cause unintended data delays.

Be cautious when setting very low timeout values, as they may lead to increased network traffic or reduced buffering effectiveness.

← Back to all directives