kmp_rtmp_out_flush_timeout
The `kmp_rtmp_out_flush_timeout` directive configures the maximum time to wait for flushing output in the Kaltura Media Framework's RTMP handling.
Description
The kmp_rtmp_out_flush_timeout directive allows you to specify a timeout duration for the flushing of output streams within the Kaltura Media Framework's RTMP module. By defining this timeout, you can manage the responsiveness of your media streaming application by ensuring that it does not hang indefinitely during streaming operations. This can be particularly important in environments where latency needs to be minimized, or where resource management is crucial in the event of network issues or unexpected delays in transcoding processes.
The directive takes a single argument that specifies the timeout duration, allowing users to set a value that aligns with their operational requirements. A shorter timeout may provide a more responsive application, but at the potential cost of increased discard rates of late data. Conversely, a longer timeout may allow for more reliable data delivery but could lead to increased latency in the streaming experience. The behavior of this directive is contingent upon its placement within the context of a defined RTMP stream or server block, reinforcing its relevance to managing output flows effectively in specialized media serving scenarios.
Config Example
kmp_rtmp_out_flush_timeout 30s;
Ensure you do not set the timeout too low, which may lead to discarded data during streaming.
Remember that this directive is only applicable within an RTMP stream or server context. Make sure it is placed correctly to take effect.