New Feature: Optimized HLS Streaming
KeyCDN has added a new feature for better HTTP Live Streaming (HLS) with a regular pull zone. Optimized HLS streaming comes for free and is available for everyone. It’s now even easier to accelerate HLS streams from your origin server.
About HLS streaming
HLS is a streaming protocol developed by Apple. The live stream is split into smaller HTTP-based files. The index file (.m3u8) contains the references to the actual video fragments called TS files. TS files are normally MPEG-2 files of equal length, all delivered via HTTP.
HLS has a number of advantages:
- Any firewall or proxy that allows HTTP traffic, can handle HLS as well.
- iOS devices can’t handle RTMP but can handle HLS streaming very well.
- Most web players such as JW or Flow player require the Flash-based version to play RTMP streams which is not so common anymore.
The new HLS streaming feature
The new feature can be enabled for any pull zone. Like all other zone features, it will be globally enabled within just a few minutes.
The index file (.m3u8) will not be cached at all. The .ts files will only be cached for 5 minutes. If the origin server sends other Cache Control headers, it will be ignored by the CDN.
In most cases live streaming based on HLS is better suited and, therefore, recommended from our side as well over RTMP. KeyCDN’s support is deprecated for RTMP.
Important: This feature should be enabled for HLS live events but NOT for prerecorded HLS videos.