# HG changeset patch # User Yaroslav Zhuravlev # Date 1431695581 -10800 # Node ID ad8a1fae0b72ddc173e105406ec7684e9aba98b0 # Parent c20c2b945f8c2e85f7d88f5c14e29c5c77efad5b Corrected example in the hls module. diff --git a/xml/en/docs/http/ngx_http_hls_module.xml b/xml/en/docs/http/ngx_http_hls_module.xml --- a/xml/en/docs/http/ngx_http_hls_module.xml +++ b/xml/en/docs/http/ngx_http_hls_module.xml @@ -9,7 +9,7 @@ + rev="6">
@@ -74,21 +74,21 @@ This module is available as part of our -location /video/ { +location / { hls; hls_fragment 5s; hls_buffers 10 10m; hls_mp4_buffer_size 1m; hls_mp4_max_buffer_size 5m; - alias /var/video/; + root /var/video/; } With this configuration, the following URIs are supported for the “/var/video/test.mp4” file: -http://hls.example.com/video/test.mp4.m3u8?offset=1.000&start=1.000&end=2.200 -http://hls.example.com/video/test.mp4.m3u8?len=8.000 -http://hls.example.com/video/test.mp4.ts?start=1.000&end=2.200 +http://hls.example.com/test.mp4.m3u8?offset=1.000&start=1.000&end=2.200 +http://hls.example.com/test.mp4.m3u8?len=8.000 +http://hls.example.com/test.mp4.ts?start=1.000&end=2.200 diff --git a/xml/ru/docs/http/ngx_http_hls_module.xml b/xml/ru/docs/http/ngx_http_hls_module.xml --- a/xml/ru/docs/http/ngx_http_hls_module.xml +++ b/xml/ru/docs/http/ngx_http_hls_module.xml @@ -9,7 +9,7 @@ + rev="6">
@@ -74,21 +74,21 @@ URI может принимать необязательные -location /video/ { +location / { hls; hls_fragment 5s; hls_buffers 10 10m; hls_mp4_buffer_size 1m; hls_mp4_max_buffer_size 5m; - alias /var/video/; + root /var/video/; } В такой конфигурации для файла “/var/video/test.mp4” будут поддерживаться следующие URI: -http://hls.example.com/video/test.mp4.m3u8?offset=1.000&start=1.000&end=2.200 -http://hls.example.com/video/test.mp4.m3u8?len=8.000 -http://hls.example.com/video/test.mp4.ts?start=1.000&end=2.200 +http://hls.example.com/test.mp4.m3u8?offset=1.000&start=1.000&end=2.200 +http://hls.example.com/test.mp4.m3u8?len=8.000 +http://hls.example.com/test.mp4.ts?start=1.000&end=2.200