changeset 1103:1fcf8c840dbe

Corrected EN text of mp4_limit_rate, mp4_limit_rate_after, translated into RU.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 04 Mar 2014 13:02:21 +0000
parents e9d2e03bf5fd
children 028f6a4d8046
files xml/en/docs/http/ngx_http_mp4_module.xml xml/ru/docs/http/ngx_http_mp4_module.xml
diffstat 2 files changed, 66 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_mp4_module.xml	Thu Mar 20 16:25:52 2014 +0400
+++ b/xml/en/docs/http/ngx_http_mp4_module.xml	Tue Mar 04 13:02:21 2014 +0000
@@ -9,7 +9,7 @@
 <module name="Module ngx_http_mp4_module"
         link="/en/docs/http/ngx_http_mp4_module.html"
         lang="en"
-        rev="2">
+        rev="3">
 
 <section id="summary">
 
@@ -175,11 +175,16 @@
 <context>location</context>
 
 <para>
-Enables or disables rate limiting based on the average bitrate of the
+Limits the rate of response transmission to a client.
+The rate is limited based on the average bitrate of the
 MP4 file served.
 To calculate the rate, the bitrate is multiplied by the specified
 <value>factor</value>.
 The special value “<literal>on</literal>” corresponds to the factor of 1.1.
+The special value “<literal>off</literal>” disables rate limiting.
+The limit is set per a request, and so if a client simultaneously opens
+two connections, the overall rate will be twice as much
+as the specified limit.
 </para>
 
 <para>
@@ -193,13 +198,15 @@
 
 <directive name="mp4_limit_rate_after">
 <syntax><value>time</value></syntax>
-<default>1m</default>
+<default>60s</default>
 <context>http</context>
 <context>server</context>
 <context>location</context>
 
 <para>
-Limits the rate after sending the specified amount of media data.
+Sets the initial amount of media data (measured in playback time)
+after which the further transmission of the response to a client
+will be rate limited.
 </para>
 
 <para>
--- a/xml/ru/docs/http/ngx_http_mp4_module.xml	Thu Mar 20 16:25:52 2014 +0400
+++ b/xml/ru/docs/http/ngx_http_mp4_module.xml	Tue Mar 04 13:02:21 2014 +0000
@@ -9,7 +9,7 @@
 <module name="Модуль ngx_http_mp4_module"
         link="/ru/docs/http/ngx_http_mp4_module.html"
         lang="ru"
-        rev="1">
+        rev="3">
 
 <section id="summary">
 
@@ -163,6 +163,60 @@
 
 </directive>
 
+
+<directive name="mp4_limit_rate">
+<syntax>
+    <literal>on</literal> |
+    <literal>off</literal> |
+    <value>множитель</value></syntax>
+<default>off</default>
+<context>http</context>
+<context>server</context>
+<context>location</context>
+
+<para>
+Ограничивает скорость передачи ответа клиенту.
+Ограничение основывается на значении усреднённого битрейта запрашиваемого
+MP4-файла.
+Скорость вычисляется умножением битрейта на задаваемый
+<value>множитель</value>.
+Специальное значение “<literal>on</literal>” соответствует множителю 1.1.
+Специальное значение “<literal>off</literal>” отключает ограничение скорости.
+Ограничение устанавливается на запрос, поэтому, если клиент одновременно
+откроет два соединения, суммарная скорость будет вдвое выше
+заданного ограничения.
+</para>
+
+<para>
+<note>
+Директива доступна как часть <commercial_version/>.
+</note>
+</para>
+
+</directive>
+
+
+<directive name="mp4_limit_rate_after">
+<syntax><value>время</value></syntax>
+<default>60s</default>
+<context>http</context>
+<context>server</context>
+<context>location</context>
+
+<para>
+Задаёт начальный объём медиаданных (измеряется как время воспроизведения),
+после отправки которого начинает ограничиваться
+скорость передачи ответа клиенту.
+</para>
+
+<para>
+<note>
+Директива доступна как часть <commercial_version/>.
+</note>
+</para>
+
+</directive>
+
 </section>
 
 </module>