Module ngx_http_hls_module
- Example Configuration
- Directives
- hls
- hls_buffers
- hls_forward_args
- hls_fragment
- hls_mp4_buffer_size
- hls_mp4_max_buffer_size
The ngx_http_hls_module module provides HTTP Live Streaming (HLS) server-side support for MP4 and MOV media files. Such files typically have the .mp4, .m4v, .m4a, .mov, or .qt filename extensions. The module supports H.264 video codec, AAC and MP3 audio codecs.
For each media file, two URIs are supported:
- A playlist URI with the “
.m3u8” filename extension. The URI can accept optional arguments:- “
start” and “end” define playlist boundaries in seconds (1.9.0). - “
offset” shifts an initial playback position to the time offset in seconds (1.9.0). A positive value sets a time offset from the beginning of the playlist. A negative value sets a time offset from the end of the last fragment in the playlist. - “
len” defines the fragment length in seconds.
- “
- A fragment URI with the “
.ts” filename extension. The URI can accept optional arguments:- “
start” and “end” define fragment boundaries in seconds.
- “
This module is available as part of our commercial subscription.