1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 19:31:53 +00:00

update readme

This commit is contained in:
winlin 2013-12-23 10:42:27 +08:00
parent 686721ac73
commit 6f165d94ec

View file

@ -16,7 +16,7 @@ who is the contributors: <br/>
2. the name of all contributors will send in the response of NetConnection.connect and metadata. 2. the name of all contributors will send in the response of NetConnection.connect and metadata.
### Usage(simple) ### Usage(simple)
<strong>step 1:</strong> get srs <br/> <strong>step 0:</strong> get srs <br/>
<pre> <pre>
tar xf simple-rtmp-server-*.*.tar.gz tar xf simple-rtmp-server-*.*.tar.gz
cd simple-rtmp-server-*.*/trunk cd simple-rtmp-server-*.*/trunk
@ -26,11 +26,11 @@ or get the latest code:<br/>
git clone https://github.com/winlinvip/simple-rtmp-server git clone https://github.com/winlinvip/simple-rtmp-server
cd simple-rtmp-server/trunk cd simple-rtmp-server/trunk
</pre> </pre>
<strong>step 2:</strong> build and start srs all demo features.<br/> <strong>step 1:</strong> build and start srs all demo features.<br/>
<pre> <pre>
bash scripts/demo.sh bash scripts/demo.sh
</pre> </pre>
<strong>step 3:</strong> srs live show: [http://demo.srs.com/players](http://demo.srs.com/players) <br/> <strong>step 2:</strong> srs live show: [http://demo.srs.com/players](http://demo.srs.com/players) <br/>
requires client add server ip to hosts. <br/> requires client add server ip to hosts. <br/>
<pre> <pre>
# edit the folowing file: # edit the folowing file:
@ -39,22 +39,28 @@ requires client add server ip to hosts. <br/>
# where server ip is 192.168.2.111 # where server ip is 192.168.2.111
192.168.2.111 demo.srs.com 192.168.2.111 demo.srs.com
</pre> </pre>
<strong>step 4:</strong> stop srs demo<br/> <strong>step 3:</strong> stop srs demo<br/>
<pre> <pre>
bash scripts/stop.sh bash scripts/stop.sh
</pre> </pre>
### Usage(detail) ### Usage(detail)
<strong>step 1:</strong> build srs <br/> <strong>step 0:</strong> get srs <br/>
<pre> <pre>
tar xf simple-rtmp-server-*.*.tar.gz tar xf simple-rtmp-server-*.*.tar.gz
cd simple-rtmp-server-*.*/trunk cd simple-rtmp-server-*.*/trunk
./configure --with-ssl --with-hls --with-ffmpeg --with-http
make
</pre> </pre>
or get the latest code:<br/> or get the latest code:<br/>
<pre> <pre>
git clone https://github.com/winlinvip/simple-rtmp-server git clone https://github.com/winlinvip/simple-rtmp-server
cd simple-rtmp-server/trunk
</pre>
<strong>step 1:</strong> build srs <br/>
<pre>
./configure --with-ssl --with-hls --with-ffmpeg --with-http && make
</pre>
or get the latest code:<br/>
<pre>
cd simple-rtmp-server/trunk cd simple-rtmp-server/trunk
./configure --with-ssl --with-hls --with-ffmpeg --with-http ./configure --with-ssl --with-hls --with-ffmpeg --with-http
</pre> </pre>