annotate xml/ru/docs/http/ngx_http_hls_module.xml @ 2651:b4991bbd64ee

Documented the js_header_filter directive.
author Yaroslav Zhuravlev <yar@nginx.com>
date Mon, 08 Feb 2021 12:30:01 +0000
parents 5cacd6fffade
children
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"
2206
5cacd6fffade Eliminated some examples of unsafe prefix locations.
Ruslan Ermilov <ru@nginx.com>
parents: 1497
diff changeset
12 rev="7">
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.
1497
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
19 Такие файлы обычно имеют расширения <path>.mp4</path>, <path>.m4v</path>,
1476
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>.
1497
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
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>
1497
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
25 Для каждого медиафайла поддерживается два URI:
1476
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>
1497
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
29 URI плейлиста, имеющий расширение “<literal>.m3u8</literal>”.
1476
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>”
1497
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
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 Отрицательное значение задаёт временной сдвиг с конца последнего фрагмента
1497
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
43 в плейлисте.
1476
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>
1497
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
47 “<literal>len</literal>” задаёт длину фрагмента в секундах.
1476
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>
1497
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
54 URI фрагмента, имеющий расширение “<literal>.ts</literal>”.
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
55 URI может принимать необязательные аргументы:
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
56 <list type="bullet">
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
57
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
58 <listitem>
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
59 “<literal>start</literal>” и “<literal>end</literal>”
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
60 задают границы фрагмента в секундах.
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
61 </listitem>
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 </list>
1497
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
64 </listitem>
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
65
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
66 </list>
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
67 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
68
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
69 <para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
70 <note>
1128
1594ed379f1f De-i18n'ed <commercial_version/>.
Ruslan Ermilov <ru@nginx.com>
parents: 1115
diff changeset
71 Модуль доступен как часть
1594ed379f1f De-i18n'ed <commercial_version/>.
Ruslan Ermilov <ru@nginx.com>
parents: 1115
diff changeset
72 <commercial_version>коммерческой подписки</commercial_version>.
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
73 </note>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
74 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
75
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
76 </section>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
77
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
78
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
79 <section id="example" name="Пример конфигурации">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
80
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
81 <para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
82 <example>
1477
ad8a1fae0b72 Corrected example in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1476
diff changeset
83 location / {
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
84 hls;
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
85 hls_fragment 5s;
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
86 hls_buffers 10 10m;
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
87 hls_mp4_buffer_size 1m;
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
88 hls_mp4_max_buffer_size 5m;
1477
ad8a1fae0b72 Corrected example in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1476
diff changeset
89 root /var/video/;
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
90 }
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
91 </example>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
92 В такой конфигурации для файла “<path>/var/video/test.mp4</path>”
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
93 будут поддерживаться следующие URI:
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
94 <example>
1477
ad8a1fae0b72 Corrected example in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1476
diff changeset
95 http://hls.example.com/test.mp4.m3u8?offset=1.000&amp;start=1.000&amp;end=2.200
ad8a1fae0b72 Corrected example in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1476
diff changeset
96 http://hls.example.com/test.mp4.m3u8?len=8.000
ad8a1fae0b72 Corrected example in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1476
diff changeset
97 http://hls.example.com/test.mp4.ts?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
98 </example>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
99 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
100
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
101 </section>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
102
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
103
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
104 <section id="directives" name="Директивы">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
105
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
106 <directive name="hls">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
107 <syntax/>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
108 <default/>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
109 <context>location</context>
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 <para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
112 Включает HLS-поток во вложенном location.
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
113 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
114
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
115 </directive>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
116
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
117
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
118 <directive name="hls_buffers">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
119 <syntax><value>число</value> <value>размер</value></syntax>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
120 <default>8 2m</default>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
121 <context>http</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
122 <context>server</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
123 <context>location</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
124
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
125 <para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
126 Задаёт максимальное <value>число</value> и <value>размер</value> буферов,
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
127 которые используются для чтения и записи блоков данных.
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
128 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
129
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
130 </directive>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
131
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
132
1142
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
133 <directive name="hls_forward_args">
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
134 <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
135 <default>off</default>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
136 <context>http</context>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
137 <context>server</context>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
138 <context>location</context>
1228
0ffd5caf0766 HLS: corrected the "appeared-in" version for hls_forward_args.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1147
diff changeset
139 <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
140
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 Добавляет аргументы из запроса плейлиста в URI фрагментов.
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
143 Это может быть необходимо для авторизации клиента
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
144 во время запроса фрагментов, а также для защиты HLS-потока с помощью
1147
ff7defe134d8 HLS: fixed fallouts in the previous edition.
Ruslan Ermilov <ru@nginx.com>
parents: 1142
diff changeset
145 модуля
ff7defe134d8 HLS: fixed fallouts in the previous edition.
Ruslan Ermilov <ru@nginx.com>
parents: 1142
diff changeset
146 <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
147 </para>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
148
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
149 <para>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
150 Например, если клиент запрашивает плейлист
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
151 <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
152 то аргументы <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
153 будут добавлены в URI фрагментов после аргументов
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
154 <literal>start</literal> и <literal>end</literal>:
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
155 <example>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
156 #EXTM3U
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
157 #EXT-X-VERSION:3
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
158 #EXT-X-TARGETDURATION:15
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
159 #EXT-X-PLAYLIST-TYPE:VOD
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
160
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
161 #EXTINF:9.333,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
162 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
163 #EXTINF:7.167,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
164 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
165 #EXTINF:5.416,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
166 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
167 #EXTINF:5.500,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
168 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
169 #EXTINF:15.167,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
170 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
171 #EXTINF:9.626,
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
172 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
173
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
174 #EXT-X-ENDLIST
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
175 </example>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
176 </para>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
177
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
178 <para>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
179 Если HLS-поток защищён с помощью модуля
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
180 <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
181 переменную <var>$uri</var> не следует использовать в выражении
1142
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
182 <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
183 так как это приведёт к ошибкам при запросах к фрагментам.
1147
ff7defe134d8 HLS: fixed fallouts in the previous edition.
Ruslan Ermilov <ru@nginx.com>
parents: 1142
diff changeset
184 Вместо <var>$uri</var> следует использовать
1142
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
185 <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
186 (<var>$hls_uri</var> в примере):
1142
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
187 <example>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
188 http {
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 map $uri $hls_uri {
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
192 ~^(?&lt;base_uri&gt;.*).m3u8$ $base_uri;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
193 ~^(?&lt;base_uri&gt;.*).ts$ $base_uri;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
194 default $uri;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
195 }
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
196
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
197 server {
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
198 ...
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
199
2206
5cacd6fffade Eliminated some examples of unsafe prefix locations.
Ruslan Ermilov <ru@nginx.com>
parents: 1497
diff changeset
200 location /hls/ {
1142
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
201 hls;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
202 hls_forward_args on;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
203
2206
5cacd6fffade Eliminated some examples of unsafe prefix locations.
Ruslan Ermilov <ru@nginx.com>
parents: 1497
diff changeset
204 alias /var/videos/;
1142
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 secure_link $arg_md5,$arg_expires;
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
207 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
208
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
209 if ($secure_link = "") {
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
210 return 403;
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 if ($secure_link = "0") {
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
214 return 410;
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 }
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 }
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
219 </example>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
220 </para>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
221
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
222 </directive>
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
223
8cb0c634ff97 HLS: documented the "hls_forward_args" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1130
diff changeset
224
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
225 <directive name="hls_fragment">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
226 <syntax><value>время</value></syntax>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
227 <default>5s</default>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
228 <context>http</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
229 <context>server</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
230 <context>location</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
231
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
232 <para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
233 Задаёт длину фрагмента по умолчанию для всех URI в плейлисте,
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
234 запрошенных без аргумента “<literal>len</literal>”.
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
235 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
236
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
237 </directive>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
238
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
239
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
240 <directive name="hls_mp4_buffer_size">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
241 <syntax><value>размер</value></syntax>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
242 <default>512k</default>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
243 <context>http</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
244 <context>server</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
245 <context>location</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
246
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
247 <para>
1115
65bc9d1ec234 MP4 and HLS: updated the "buffer size" phrase for _buffer_size directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1111
diff changeset
248 Задаёт начальный <value>размер</value> буфера, используемого для
1497
6650933c46d4 Corrected language and formatting in the hls module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1477
diff changeset
249 обработки MP4- и MOV-файлов.
1111
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
250 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
251
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
252 </directive>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
253
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
254
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
255 <directive name="hls_mp4_max_buffer_size">
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
256 <syntax><value>размер</value></syntax>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
257 <default>10m</default>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
258 <context>http</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
259 <context>server</context>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
260 <context>location</context>
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 <para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
263 В ходе обработки метаданных может понадобиться буфер большего размера.
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
264 Его <value>размер</value> не может превышать указанного,
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
265 иначе nginx вернёт серверную ошибку
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
266 <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
267 и запишет в лог следующее сообщение:
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
268 <example>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
269 "/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
270 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
271 </example>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
272 </para>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
273
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
274 </directive>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
275
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
276 </section>
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
277
9c766ddc3535 HLS: Translated the "http_ngx_http_hls_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
278 </module>