Skip to content

v1_EN_SampleDemo

winlin edited this page Nov 17, 2014 · 31 revisions

SRS demo deploy example

SRS的DEMO的部署,提供网页演示播放/推送RTMP到SRS,播放HLS,转码,视频会议等。

注意:强烈建议初学者不要动demo,只要看demo就好;建议学完Usage的每个单独的使用,然后再动demo。

假设服务器的IP是:192.168.1.170

第一步,设置客户端hosts,注意是客户端(需要将demo.srs.com这个域名/vhost解析到服务器)

# 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/winlinvip/simple-rtmp-server
cd simple-rtmp-server/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