# HG changeset patch # User Yaroslav Zhuravlev # Date 1393938141 0 # Node ID 5a7f86254a34370af27b1b92ce10c3ddc32f8999 # Parent eb3713019359404fdbdc5d4e74b42bdb5245b19b Mp4: documented the "end" request argument support. diff -r eb3713019359 -r 5a7f86254a34 xml/en/docs/http/ngx_http_mp4_module.xml --- a/xml/en/docs/http/ngx_http_mp4_module.xml Tue Mar 04 13:02:21 2014 +0000 +++ b/xml/en/docs/http/ngx_http_mp4_module.xml Tue Mar 04 13:02:21 2014 +0000 @@ -9,7 +9,7 @@ + rev="6">
@@ -64,17 +64,28 @@ +The module also supports the end argument of an HTTP request +(1.5.13) which sets the end point of playback. +The end argument can be specified with the +start argument +or separately: + +http://example.com/elephants_dream.mp4?start=238.88&end=555.55 + + + + For a matching request with a non-zero -start +start or end argument, nginx will read the metadata from the file, prepare the -stream starting from the requested offset, and send it to the client. +stream with the requested time range, and send it to the client. This has the same overhead as described above. If a matching request does not include the -start -argument, there is no overhead, and the file is sent simply as a static +start and end +arguments, there is no overhead, and the file is sent simply as a static resource. Some players also support byte-range requests, and thus do not require this module. diff -r eb3713019359 -r 5a7f86254a34 xml/ru/docs/http/ngx_http_mp4_module.xml --- a/xml/ru/docs/http/ngx_http_mp4_module.xml Tue Mar 04 13:02:21 2014 +0000 +++ b/xml/ru/docs/http/ngx_http_mp4_module.xml Tue Mar 04 13:02:21 2014 +0000 @@ -9,7 +9,7 @@ + rev="6">
@@ -64,16 +64,27 @@ -Для запроса с ненулевым аргументом -start -nginx считывает из файла метаданные, готовит поток с запрошенного -смещения и отправляет его клиенту. +Модуль также поддерживает аргумент end HTTP-запроса +(1.5.13), задающий время окончания воспроизведения потока. +Аргумент end задаётся совместно с +аргументом start +или самостоятельно: + +http://example.com/elephants_dream.mp4?start=238.88&end=555.55 + + + + +Для запроса с ненулевыми аргументами +start или end +nginx считывает из файла метаданные, готовит поток с запрошенным +диапазоном и отправляет его клиенту. Это тоже требует дополнительных ресурсов, как указано выше. -Если запрос, обрабатываемый этим модулем, не содержит аргумента -start, +Если запрос, обрабатываемый этим модулем, не содержит аргументов +start и end, дополнительные ресурсы не тратятся, а файл отсылается непосредственно как статический ресурс. Некоторые плееры также поддерживают запросы с указанием диапазона