.. _hls:
=========================
HTTP Live Streaming(HLS)
=========================
206 Partial Content
========================
当使用简单的 :ref:`nginx_autoindex` 为客户端浏览器提供视频文件索引,浏览器中点击任何一个视频文件,都能够非常简单地实现播放。此时,在服务器端的nginx日志可以看到
.. literalinclude:: hls/nginx_206.log
:caption: nginx日志中记录206返回码为客户端提供分片文件流化下载
HTTP 206返回码表示 ``Partial Content success`` ,也就是表明成功返回请求数据范围的内容,这个数据请求的范围在HTTP头部Range部分描述。
参考
===========
- `Video Streaming Protocols: 6 Preferred Formats for Professional Broadcasting `_
- `Streaming Protocols: Everything You Need to Know `_
- `Video streaming protocols explained: RTMP, WebRTC, FTL, SRT `_
- `Mozilla web docs: 206 Partial Content `_