kmp_rtmp_out_onfi_period
The `kmp_rtmp_out_onfi_period` directive configures the output ONFI (Online Node Feed Interface) period for Kaltura's RTMP streams.
Description
The kmp_rtmp_out_onfi_period directive is part of the Kaltura Media Framework and specifically applies to streaming contexts within NGINX. This directive allows administrators to define the time interval (in seconds) that will dictate how frequently the ONFI packets are sent to clients for RTMP streams. The ONFI protocol is leveraged here to enhance real-time communication and control between streaming media servers and clients, ensuring timely updates and interactions during a streaming session. By tuning the ONFI period, users can optimize the performance and responsiveness of media delivery, particularly in scenarios where latency needs to be minimized or client state needs to be updated more frequently.
This directive takes a single numeric argument that specifies the interval in seconds. Setting this value too high may lead to increased latency due to delayed updates for the clients, while setting it too low may cause excessive network traffic, potentially overwhelming the servers and degrading performance. Hence, it is crucial for users to find a balance between the desired performance and network overhead based on their specific use case and server capabilities.
Config Example
stream {
server {
listen 1935;
kmp_rtmp_out_onfi_period 2;
# Additional RTMP configurations...
}
}Ensure that the interval is specified in seconds; using incorrect values may lead to configuration errors.
Values that are too low can negatively impact network performance and server resources.
Test the configuration under load to find the optimal period that balances latency and bandwidth.