Introduction
Low-latency HLS (LL-HLS) playback feature has been introduced in Ant Media Server version 2.11 and above. It allows you to stream with minimal latency (around 2-5 seconds), making it ideal for near real-time streaming applications.
What is LL-HLS?
Low Latency HLS (LL-HLS) is a streaming protocol designed to minimize latency in live streaming. Traditional HLS can have latency ranging from 20-30 seconds, while LL-HLS reduces this to around 2-5 seconds.
LL-HLS achieves this by using smaller video segments (called "parts") that allow the video player to start playback before an entire segment is completed.
Key Differences: HLS vs. LL-HLS
Standard HLS | Low Latency HLS (LL-HLS) |
---|---|
Latency: ~20-30 secs | Latency: ~2-5 secs |
Segment-based | Part-based (smaller chunks) |
Larger file sizes | Smaller, more frequent parts |
How to Enable LL-HLS in Ant Media Server
LL-HLS is a paid plugin offered by the Ant Media Server. So before using LL-HLS, you need to purchase and install the plugin on your Ant Media Server. For more information about plugin structure in Ant Media Server, take a look at the Ant Media Server Plugins