pckg_m3u8_enc_key_format
The `pckg_m3u8_enc_key_format` directive specifies the encoding format for encryption keys in HLS playlist files.
Description
The pckg_m3u8_enc_key_format directive is utilized within the Kaltura Media Framework's NGINX module to define how encryption keys are formatted in the generated HLS (.m3u8) playlist files. This directive allows the user to set a specific format that determines how these keys are represented, ensuring compatibility with various playback environments and media player requirements. By default, certain values may be assumed based on the standard practices of streaming media, but this directive can override such defaults to meet particular use-case requirements.
Setting this directive affects the output of the playlist files generated by NGINX, particularly in contexts where media streams are encrypted. The expected value for this directive is usually a string that describes the encoding format, such as 'aes-128' for AES encryption. This allows users to implement security measures tailored to their content distribution strategies and playback compatibility, as HLS supports different encryption schemes depending on the player and environment.
Proper use of the pckg_m3u8_enc_key_format directive involves placing it in the appropriate context – within the http, server, or location directives in your NGINX configuration. Care must be taken to ensure the chosen format aligns with the encoding methods supported by the clients that will consume the media. Misconfiguration here could result in startup failures or playback issues for end-users.
Config Example
location /videos {
pckg_m3u8_enc_key_format aes-128;
}Ensure the specified encoding format is supported by the media players that will consume the HLS playlists.
Using an incorrect format may result in playback failures or security vulnerabilities.
This directive must be set in the correct context (http, server, location) for it to take effect.