1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine the build result.

This commit is contained in:
winlin 2013-12-23 13:38:31 +08:00
parent 2cefe1a9bb
commit 47e173bf24
6 changed files with 46 additions and 35 deletions

View file

@ -2,6 +2,12 @@
src_dir='src'
if [[ ! -d $src_dir ]]; then echo "错误必须在src同目录执行脚本"; exit 1; fi
# linux shell color support.
RED="\\e[31m"
GREEN="\\e[32m"
YELLOW="\\e[33m"
BLACK="\\e[0m"
# step 1: build srs
#bash scripts/_step.build.sh; ret=$?; if [[ 0 -ne $ret ]]; then exit $ret; fi
@ -24,15 +30,16 @@ bash scripts/_step.start.ffmpeg.demo.sh; ret=$?; if [[ 0 -ne $ret ]]; then exit
bash scripts/_step.start.ffmpeg.players.sh; ret=$?; if [[ 0 -ne $ret ]]; then exit $ret; fi
# step 8: add server ip to client hosts as demo.
ip=`ifconfig|grep "inet"|grep "addr"|grep "Mask"|grep -v "127.0.0.1"|awk 'NR==1 {print $2}'|awk -F ':' '{print $2}'`
cat<<END
SRS系统启动成功您需要在客户端机器设置hosts后即可观看演示
# edit the folowing file:
# linux: /etc/hosts
# windows: C:\Windows\System32\drivers\etc\hosts
# where server ip is 192.168.2.111
192.168.2.111 demo.srs.com
默认的12路流演示http://demo.srs.com/players
默认的播放器流演示http://demo.srs.com/players/srs_player.html?vhost=players
推流主播应用演示http://demo.srs.com/players/srs_publisher.html?vhost=players
视频会议聊天室应用演示http://demo.srs.com/players/srs_chat.html?vhost=players
默认的12路流演示
http://$ip/players
默认的播放器流演示:
http://$ip/players/srs_player.html?vhost=players
推流(主播)应用演示:
http://$ip/players/srs_publisher.html?vhost=players
视频会议(聊天室)应用演示:
http://$ip/players/srs_chat.html?vhost=players
END
echo -e "${GREEN}演示地址:${BLACK}"
echo -e "${RED} http://$ip${BLACK}"