Skip to content

SampleDemo

winlin edited this page Mar 10, 2014 · 17 revisions

Demo的部署

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

假设服务器的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

第二步,获取SRS。详细参考GIT获取代码

git clone https://github.com/winlinvip/simple-rtmp-server
cd simple-rtmp-server/trunk

或者使用git更新已有代码:

git pull

第三步,编译SRS。详细参考Build

./configure && make

第三步,启动SRS的DEMO,启动ffmpeg/nginx/srs等。

bash scripts/run.sh

访问SRS的DEMO:http://demo.srs.com

Winlin 2014.3

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