kmp_rtmp_api

The `kmp_rtmp_api` directive enables the integration of Kaltura Media Framework's RTMP-based API in NGINX configurations.

Syntaxkmp_rtmp_api;
Defaultnone
Contextlocation
Argumentsany

Description

The kmp_rtmp_api directive is part of the Kaltura Media Framework Common NGINX Module, which is designed to facilitate the interaction between streaming media components and NGINX. By using this directive within a location block, users can enable processing of requests that are targeted at the Kaltura Media Protocol (KMP) API endpoint. This allows NGINX to handle requests and route them appropriately for operations such as publishing or managing live streams.

The directive accepts an argument of 'any', meaning it can be configured to handle any incoming requests that match the specified location. It provides a way to define custom behaviors for the streaming media server, leveraging the built-in capabilities of NGINX for load balancing, caching, and efficient request processing. The implementation details involve defining handlers for various HTTP methods (GET, POST, etc.) that are crucial for RTMP operations and correctly handling the incoming stream data through the server.

Config Example

location /live {
    kmp_rtmp_api;
    # Other directives for RTMP operation can go here
}

Ensure that the request method corresponds correctly to your RTMP functionality, as the directive may not handle all HTTP methods gracefully.

Be aware of network latency; improper configuration may lead to stream interruptions during high load periods.

← Back to all directives