pckg_media_type_selector
The `pckg_media_type_selector` directive configures the preferred media type for Kaltura's media processing.
Description
The pckg_media_type_selector directive is part of the Kaltura Media Framework Common NGINX Module, which is designed to facilitate the delivery and processing of media content. This directive operates in the contexts of http, server, and location, allowing configuration at different scopes of the NGINX server. By accepting one argument, this directive enables administrators to specify a media type that the Kaltura infrastructure should prioritize when delivering media content. The chosen media type can influence how media is processed and served, affecting aspects such as compatibility with clients and the efficiency of streaming.
The argument for the pckg_media_type_selector directive needs to be a valid media type, commonly expressed in the format type/subtype, such as video/mp4 or audio/mp3. This ensures that the NGINX server can correctly identify and handle requests based on the specified media type. Administrators should carefully select the media type that best aligns with their application's needs, considering factors like user preferences and device compatibility. Once set, the directive affects all subsequent media requests handled by the Kaltura system, leading to consistent media type handling across various components and services.
Config Example
http {
...
pckg_media_type_selector video/mp4;
...
}Ensure the media type specified is supported by all components in your Kaltura deployment.
Setting an invalid media type may result in failure to serve media correctly.