annotate xml/ru/docs/http/ngx_http_hls_module.xml @ 1476:c20c2b945f8c

Added new URI arguments, corrected file formats in hls.
author Yaroslav Zhuravlev <yar@nginx.com>
date Fri, 15 May 2015 16:11:59 +0300
parents 0ffd5caf0766
children ad8a1fae0b72
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
1 <?xml version="1.0"?>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
2
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
3 <!--
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
4 Copyright (C) Nginx, Inc.
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
5 -->
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
6
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
8
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
9 <module name="Module ngx_http_hls_module"
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
10 link="/ru/docs/http/ngx_http_hls_module.html"
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
11 lang="ru"
1476
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
12 rev="5">
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
13
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
14 <section id="summary">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
15
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
16 <para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
17 Модуль <literal>ngx_http_hls_module</literal> обеспечивает серверную поддержку
1476
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
18 протокола HTTP Live Streaming (HLS) для медиафайлов в формате MP4 и MOV.
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
19 Такие файлы обычно имеют расширения <path>.mp4</path>, <path>.m4v</path>
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
20 <path>.m4a</path>, <path>.mov</path> или <path>.qt</path>.
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
21 Модуль поддерживает видеокодек H.264, аудиокодеки AAC и MP3.
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
22 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
23
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
24 <para>
1476
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
25 Для каждого медиафайла поддерживается два вида URI:
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
26 <list type="bullet">
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
27
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
28 <listitem>
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
29 URI плейлиста, имеющего расширение “<literal>.m3u8</literal>”.
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
30 URI может принимать необязательные аргументы:
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
31 <list type="bullet">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
32
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
33 <listitem>
1476
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
34 “<literal>start</literal>” и “<literal>end</literal>”
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
35 задают границы плейлиста в секундах (1.9.0);
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
36 </listitem>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
37
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
38 <listitem>
1476
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
39 “<literal>offset</literal>” сдвигает первоначальную позицию воспроизведения
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
40 на указанное время в секундах (1.9.0).
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
41 Положительное значение задаёт временной сдвиг с начала плейлиста.
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
42 Отрицательное значение задаёт временной сдвиг с конца последнего фрагмента
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
43 в плейлисте;
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
44 </listitem>
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
45
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
46 <listitem>
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
47 “<literal>len</literal>” задаёт длину фрагмента в секундах,
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
48 </listitem>
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
49 </list>
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
50
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
51 </listitem>
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
52
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
53 <listitem>
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
54 URI фрагмента, имеющего расширение “<literal>.ts</literal>”.
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
55 URI может принимать необязательные
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
56 аргументы “<literal>start</literal>” и “<literal>end</literal>”, которые
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
57 задают границы фрагмента в секундах.
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
58 </listitem>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
59
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
60 </list>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
61 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
62
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
63 <para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
64 <note>
1128
1594ed379f1f De-i18n'ed <commercial_version/>.
Ruslan Ermilov <ru@nginx.com>
parents: 1115
diff changeset
65 Модуль доступен как часть
1594ed379f1f De-i18n'ed <commercial_version/>.
Ruslan Ermilov <ru@nginx.com>
parents: 1115
diff changeset
66 <commercial_version>коммерческой подписки</commercial_version>.
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
67 </note>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
68 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
69
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
70 </section>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
71
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
72
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
73 <section id="example" name="Пример конфигурации">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
74
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
75 <para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
76 <example>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
77 location /video/ {
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
78 hls;
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
79 hls_fragment 5s;
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
80 hls_buffers 10 10m;
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
81 hls_mp4_buffer_size 1m;
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
82 hls_mp4_max_buffer_size 5m;
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
83 alias /var/video/;
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
84 }
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
85 </example>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
86 В такой конфигурации для файла “<path>/var/video/test.mp4</path>”
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
87 будут поддерживаться следующие URI:
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
88 <example>
1476
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
89 http://hls.example.com/video/test.mp4.m3u8?offset=1.000&amp;start=1.000&amp;end=2.200
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
90 http://hls.example.com/video/test.mp4.m3u8?len=8.000
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
91 http://hls.example.com/video/test.mp4.ts?start=1.000&amp;end=2.200
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
92 </example>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
93 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
94
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
95 </section>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
96
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
97
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
98 <section id="directives" name="Директивы">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
99
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
100 <directive name="hls">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
101 <syntax/>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
102 <default/>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
103 <context>location</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
104
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
105 <para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
106 Включает HLS-поток во вложенном location.
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
107 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
108
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
109 </directive>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
110
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
112 <directive name="hls_buffers">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
113 <syntax><value>число</value> <value>размер</value></syntax>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
114 <default>8 2m</default>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
115 <context>http</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
116 <context>server</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
117 <context>location</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
118
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
119 <para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
120 Задаёт максимальное <value>число</value> и <value>размер</value> буферов,
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
121 которые используются для чтения и записи блоков данных.
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
122 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
123
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
124 </directive>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
125
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
126
1142
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
127 <directive name="hls_forward_args">
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
128 <syntax><literal>on</literal> | <literal>off</literal></syntax>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
129 <default>off</default>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
130 <context>http</context>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
131 <context>server</context>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
132 <context>location</context>
1228
0ffd5caf0766 HLS: corrected the "appeared-in" version for hls_forward_args.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1147
diff changeset
133 <appeared-in>1.5.12</appeared-in>
1142
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
134
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
135 <para>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
136 Добавляет аргументы из запроса плейлиста в URI фрагментов.
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
137 Это может быть необходимо для авторизации клиента
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
138 во время запроса фрагментов, а также для защиты HLS-потока с помощью
1147
ff7defe134d8 HLS: fixed fallouts in the previous edition.
Ruslan Ermilov <ru@nginx.com>
parents: 1142
diff changeset
139 модуля
ff7defe134d8 HLS: fixed fallouts in the previous edition.
Ruslan Ermilov <ru@nginx.com>
parents: 1142
diff changeset
140 <link doc="ngx_http_secure_link_module.xml">ngx_http_secure_link_module</link>.
1142
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
141 </para>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
142
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
143 <para>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
144 Например, если клиент запрашивает плейлист
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
145 <literal>http://example.com/hls/test.mp4.m3u8?a=1&amp;b=2</literal>,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
146 то аргументы <literal>a=1</literal> и <literal>b=2</literal>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
147 будут добавлены в URI фрагментов после аргументов
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
148 <literal>start</literal> и <literal>end</literal>:
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
149 <example>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
150 #EXTM3U
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
151 #EXT-X-VERSION:3
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
152 #EXT-X-TARGETDURATION:15
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
153 #EXT-X-PLAYLIST-TYPE:VOD
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
154
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
155 #EXTINF:9.333,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
156 test.mp4.ts?start=0.000&amp;end=9.333&amp;a=1&amp;b=2
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
157 #EXTINF:7.167,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
158 test.mp4.ts?start=9.333&amp;end=16.500&amp;a=1&amp;b=2
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
159 #EXTINF:5.416,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
160 test.mp4.ts?start=16.500&amp;end=21.916&amp;a=1&amp;b=2
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
161 #EXTINF:5.500,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
162 test.mp4.ts?start=21.916&amp;end=27.416&amp;a=1&amp;b=2
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
163 #EXTINF:15.167,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
164 test.mp4.ts?start=27.416&amp;end=42.583&amp;a=1&amp;b=2
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
165 #EXTINF:9.626,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
166 test.mp4.ts?start=42.583&amp;end=52.209&amp;a=1&amp;b=2
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
167
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
168 #EXT-X-ENDLIST
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
169 </example>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
170 </para>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
171
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
172 <para>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
173 Если HLS-поток защищён с помощью модуля
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
174 <link doc="ngx_http_secure_link_module.xml">ngx_http_secure_link_module</link>,
1147
ff7defe134d8 HLS: fixed fallouts in the previous edition.
Ruslan Ermilov <ru@nginx.com>
parents: 1142
diff changeset
175 переменную <var>$uri</var> не следует использовать в выражении
1142
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
176 <link doc="ngx_http_secure_link_module.xml" id="secure_link_md5"/>,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
177 так как это приведёт к ошибкам при запросах к фрагментам.
1147
ff7defe134d8 HLS: fixed fallouts in the previous edition.
Ruslan Ermilov <ru@nginx.com>
parents: 1142
diff changeset
178 Вместо <var>$uri</var> следует использовать
1142
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
179 <link doc="ngx_http_map_module.xml" id="map">базовую часть URI</link>
1147
ff7defe134d8 HLS: fixed fallouts in the previous edition.
Ruslan Ermilov <ru@nginx.com>
parents: 1142
diff changeset
180 (<var>$hls_uri</var> в примере):
1142
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
181 <example>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
182 http {
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
183 ...
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
184
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
185 map $uri $hls_uri {
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
186 ~^(?&lt;base_uri&gt;.*).m3u8$ $base_uri;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
187 ~^(?&lt;base_uri&gt;.*).ts$ $base_uri;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
188 default $uri;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
189 }
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
190
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
191 server {
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
192 ...
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
193
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
194 location /hls {
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
195 hls;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
196 hls_forward_args on;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
197
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
198 alias /var/videos;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
199
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
200 secure_link $arg_md5,$arg_expires;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
201 secure_link_md5 "$secure_link_expires$hls_uri$remote_addr secret";
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
202
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
203 if ($secure_link = "") {
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
204 return 403;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
205 }
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
206
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
207 if ($secure_link = "0") {
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
208 return 410;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
209 }
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
210 }
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
211 }
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
212 }
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
213 </example>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
214 </para>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
215
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
216 </directive>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
217
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
218
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
219 <directive name="hls_fragment">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
220 <syntax><value>время</value></syntax>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
221 <default>5s</default>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
222 <context>http</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
223 <context>server</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
224 <context>location</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
225
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
226 <para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
227 Задаёт длину фрагмента по умолчанию для всех URI в плейлисте,
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
228 запрошенных без аргумента “<literal>len</literal>”.
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
229 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
230
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
231 </directive>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
232
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
233
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
234 <directive name="hls_mp4_buffer_size">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
235 <syntax><value>размер</value></syntax>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
236 <default>512k</default>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
237 <context>http</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
238 <context>server</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
239 <context>location</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
240
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
241 <para>
1115
65bc9d1ec234 MP4 and HLS: updated the "buffer size" phrase for _buffer_size directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1111
diff changeset
242 Задаёт начальный <value>размер</value> буфера, используемого для
1476
c20c2b945f8c Added new URI arguments, corrected file formats in hls.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1228
diff changeset
243 обработки MP4 и MOV-файлов.
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
244 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
245
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
246 </directive>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
247
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
248
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
249 <directive name="hls_mp4_max_buffer_size">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
250 <syntax><value>размер</value></syntax>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
251 <default>10m</default>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
252 <context>http</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
253 <context>server</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
254 <context>location</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
255
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
256 <para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
257 В ходе обработки метаданных может понадобиться буфер большего размера.
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
258 Его <value>размер</value> не может превышать указанного,
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
259 иначе nginx вернёт серверную ошибку
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
260 <http-status code="500" text="Internal Server Error"/>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
261 и запишет в лог следующее сообщение:
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
262 <example>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
263 "/some/movie/file.mp4" mp4 moov atom is too large:
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
264 12583268, you may want to increase hls_mp4_max_buffer_size
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
265 </example>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
266 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
267
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
268 </directive>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
269
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
270 </section>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
271
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
272 </module>