Mercurial > hg > nginx-site
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 +++ b/xml/en/docs/http/ngx_http_mp4_module.xml @@ -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 @@ 12583268, you may want to increase mp4_m <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 @@ This directive is available as part of o <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 +++ b/xml/ru/docs/http/ngx_http_mp4_module.xml @@ -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 @@ 12583268, you may want to increase mp4_m </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>