ts_timeout

The `ts_timeout` directive sets the timeout duration for the transmission of media segments in a streaming context.

Syntaxts_timeout value;
Defaultnone
Contextstream, stream server
Arguments1

Description

The ts_timeout directive is part of the Kaltura Media Framework and is used within the contexts of a stream and stream server. It is primarily designed to manage how long the server will wait before timing out during the transfer of media segments to clients. This directive is crucial for maintaining smooth streaming experiences, especially in live scenarios where delays can lead to poor user experiences. By specifying an appropriate timeout value, administrators can prevent unnecessary hangs or delays in media playback due to network issues or client connectivity problems.

The syntax of the ts_timeout directive requires a single argument which specifies the duration of the timeout, typically expressed in a format such as seconds or milliseconds. The directive is essential when configuring parameters of live streaming applications, ensuring that the server efficiently manages its resources in response to varying network conditions. When ts_timeout is set to a lower value, it may enhance responsiveness, but it could also lead to interrupted streams under adverse network conditions; conversely, a higher value might be necessary in high-latency environments, albeit at the cost of increased resource retention.

Config Example

stream {
    server {
        listen 1935;
        ts_timeout 30s;
    }
}

Setting the timeout too low can result in frequent disconnects, especially in unstable network conditions.

Conversely, setting it too high can lead to resource exhaustion on the server if many streams are being held open longer than necessary.

← Back to all directives