comparison xml/en/docs/http/ngx_http_mp4_module.xml @ 953:aded7086e84f

Commercial version documentation.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 01 Aug 2013 16:31:02 +0400
parents 77a3314c74a7
children 488a3f738db0
comparison
equal deleted inserted replaced
952:417dc982362e 953:aded7086e84f
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
8 8
9 <module name="Module ngx_http_mp4_module" 9 <module name="Module ngx_http_mp4_module"
10 link="/en/docs/http/ngx_http_mp4_module.html" 10 link="/en/docs/http/ngx_http_mp4_module.html"
11 lang="en" 11 lang="en"
12 rev="1"> 12 rev="2">
13 13
14 <section id="summary"> 14 <section id="summary">
15 15
16 <para> 16 <para>
17 The module <literal>ngx_http_mp4_module</literal> provides pseudo-streaming 17 The module <literal>ngx_http_mp4_module</literal> provides pseudo-streaming
98 98
99 <para> 99 <para>
100 <example> 100 <example>
101 location /video/ { 101 location /video/ {
102 mp4; 102 mp4;
103 mp4_buffer_size 1m; 103 mp4_buffer_size 1m;
104 mp4_max_buffer_size 5m; 104 mp4_max_buffer_size 5m;
105 mp4_limit_rate on;
106 mp4_limit_rate_after 30s;
105 } 107 }
106 </example> 108 </example>
107 </para> 109 </para>
108 110
109 </section> 111 </section>
156 </example> 158 </example>
157 </para> 159 </para>
158 160
159 </directive> 161 </directive>
160 162
163
164 <directive name="mp4_limit_rate">
165 <syntax>
166 <literal>on</literal> |
167 <literal>off</literal> |
168 <value>factor</value></syntax>
169 <default>off</default>
170 <context>http</context>
171 <context>server</context>
172 <context>location</context>
173
174 <para>
175 Enables or disables rate limiting based on an average bitrate of the
176 MP4 file served.
177 To calculate the rate, bitrate is multiplied by the specified
178 <value>factor</value>.
179 The special value “<literal>on</literal>” corresponds to a factor of 1.1.
180 </para>
181
182 <para>
183 <note>
184 This directive is available as part of our <commercial_version/> only.
185 </note>
186 </para>
187
188 </directive>
189
190
191 <directive name="mp4_limit_rate_after">
192 <syntax><value>time</value></syntax>
193 <default>1m</default>
194 <context>http</context>
195 <context>server</context>
196 <context>location</context>
197
198 <para>
199 Limits rate after sending the specified amount of media data.
200 </para>
201
202 <para>
203 <note>
204 This directive is available as part of our <commercial_version/> only.
205 </note>
206 </para>
207
208 </directive>
209
161 </section> 210 </section>
162 211
163 </module> 212 </module>