comparison xml/en/docs/http/ngx_http_hls_module.xml @ 1477:ad8a1fae0b72

Corrected example in the hls module.
author Yaroslav Zhuravlev <yar@nginx.com>
date Fri, 15 May 2015 16:13:01 +0300
parents c20c2b945f8c
children 6650933c46d4
comparison
equal deleted inserted replaced
1476:c20c2b945f8c 1477:ad8a1fae0b72
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
8 8
9 <module name="Module ngx_http_hls_module" 9 <module name="Module ngx_http_hls_module"
10 link="/en/docs/http/ngx_http_hls_module.html" 10 link="/en/docs/http/ngx_http_hls_module.html"
11 lang="en" 11 lang="en"
12 rev="5"> 12 rev="6">
13 13
14 <section id="summary"> 14 <section id="summary">
15 15
16 <para> 16 <para>
17 The <literal>ngx_http_hls_module</literal> module provides HTTP Live Streaming 17 The <literal>ngx_http_hls_module</literal> module provides HTTP Live Streaming
72 72
73 <section id="example" name="Example Configuration"> 73 <section id="example" name="Example Configuration">
74 74
75 <para> 75 <para>
76 <example> 76 <example>
77 location /video/ { 77 location / {
78 hls; 78 hls;
79 hls_fragment 5s; 79 hls_fragment 5s;
80 hls_buffers 10 10m; 80 hls_buffers 10 10m;
81 hls_mp4_buffer_size 1m; 81 hls_mp4_buffer_size 1m;
82 hls_mp4_max_buffer_size 5m; 82 hls_mp4_max_buffer_size 5m;
83 alias /var/video/; 83 root /var/video/;
84 } 84 }
85 </example> 85 </example>
86 With this configuration, the following URIs are supported for 86 With this configuration, the following URIs are supported for
87 the “<path>/var/video/test.mp4</path>” file: 87 the “<path>/var/video/test.mp4</path>” file:
88 <example> 88 <example>
89 http://hls.example.com/video/test.mp4.m3u8?offset=1.000&amp;start=1.000&amp;end=2.200 89 http://hls.example.com/test.mp4.m3u8?offset=1.000&amp;start=1.000&amp;end=2.200
90 http://hls.example.com/video/test.mp4.m3u8?len=8.000 90 http://hls.example.com/test.mp4.m3u8?len=8.000
91 http://hls.example.com/video/test.mp4.ts?start=1.000&amp;end=2.200 91 http://hls.example.com/test.mp4.ts?start=1.000&amp;end=2.200
92 </example> 92 </example>
93 </para> 93 </para>
94 94
95 </section> 95 </section>
96 96