mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
fixed code blocks
This commit is contained in:
28
index.html
28
index.html
@ -64,10 +64,11 @@ readable form</p></li>
|
||||
|
||||
<h2>Build:</h2>
|
||||
<p>cd to NGINX source directory & run this:</p>
|
||||
<code>./configure --add-module=
|
||||
<pre>
|
||||
./configure --add-module=/path/to.nginx-rtmp-module
|
||||
make
|
||||
make install
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<h2>Example nginx.conf</h2>
|
||||
|
||||
@ -75,11 +76,8 @@ make install
|
||||
|
||||
<pre>
|
||||
rtmp {
|
||||
|
||||
server {
|
||||
|
||||
listen 1935;
|
||||
|
||||
application mytv {
|
||||
|
||||
# enable live streaming
|
||||
@ -99,7 +97,7 @@ rtmp {
|
||||
</pre>
|
||||
|
||||
<h3>Transcoding</h3>
|
||||
<code>
|
||||
<pre>
|
||||
application big {
|
||||
live on;
|
||||
|
||||
@ -122,10 +120,10 @@ rtmp {
|
||||
live on;
|
||||
# Video with reduced resolution comes here from ffmpeg
|
||||
}
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<h3>Pushing stream</h3>
|
||||
<code>
|
||||
<pre>
|
||||
application mypush {
|
||||
live on;
|
||||
|
||||
@ -135,10 +133,10 @@ rtmp {
|
||||
push rtmp1.example.com;
|
||||
push rtmp2.example.com:1934;
|
||||
}
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<h3>Pulling stream</h3>
|
||||
<code>
|
||||
<pre>
|
||||
application mypull {
|
||||
live on;
|
||||
|
||||
@ -146,24 +144,24 @@ rtmp {
|
||||
# and play locally
|
||||
pull rtmp://rtmp3.example.com pageUrl=www.example.com/index.html;
|
||||
}
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<h3>Video on demand</h3>
|
||||
<code>
|
||||
<pre>
|
||||
application vod {
|
||||
play /var/flvs;
|
||||
}
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<h3>HLS (HTTP Live Streaming)</h3>
|
||||
<code>
|
||||
<pre>
|
||||
application hls {
|
||||
hls on;
|
||||
hls_path /tmp/app;
|
||||
hls_fragment 5s;
|
||||
}
|
||||
}
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
<h2>>Donation:</h2>
|
||||
|
Reference in New Issue
Block a user