Skip to content

v2_EN_SampleDemo

winlin edited this page Jun 27, 2020 · 6 revisions

HOME > EN > Demo

SRS demo deploy example

The DEMO of SRS, to study RTMP and HLS, show the player/publisher/meeting/transcoding features.

Note: Strongly recomment that fresher never modify demo, just study. Please study all Usage.

Suppose the server ip is 192.168.1.170

Step 1, set the hosts of client.

# edit the folowing file:
# linux: /etc/hosts
# windows: C:\Windows\System32\drivers\etc\hosts
# where server ip is 192.168.1.170
192.168.1.170 demo.srs.com

Step 2, get SRS. For detail, read GIT

git clone https://github.com/ossrs/srs
cd srs/trunk

Or update the exists code:

git pull

Step 3, build SRS. For detail, read Build

bash scripts/build.sh

Step 3, start SRS DEMO, which will run ffmpeg/api-server/srs

bash scripts/run.sh

Access SRS DEMO url: http://demo.srs.com:8085

Step 4, stop SRS DEMO, which will stop ffmpeg/api-server/srs

bash scripts/stop.sh

Note: All links of demo is ok, all features is on.

Note: Please replace all ip 192.168.1.170 to your server ip.

Note: Demo does not depends on nginx, we use cherrypy to delivery the web pages and HLS. Demo use FFMPEG to transcode.

Winlin 2014.11

Welcome to SRS wiki!

SRS 5.0 wiki

Please select your language:

SRS 4.0 wiki

Please select your language:

SRS 3.0 wiki

Please select your language:

SRS 2.0 wiki

Please select your language:

SRS 1.0 wiki

Please select your language:

Clone this wiki locally