diff --git a/README.md b/README.md
index d9d9d82e1..a509d266c 100755
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ see also: [http://winlinvip.github.io/simple-rtmp-server](http://winlinvip.githu
winlin(winterserver): [http://blog.csdn.net/win_lin](http://blog.csdn.net/win_lin)
### Usage
-step 1: build srs
+step 1: build srs
tar xf simple-rtmp-server-*.*.tar.gz cd simple-rtmp-server-*.*/trunk @@ -25,23 +25,23 @@ git clone https://github.com/winlinvip/simple-rtmp-server cd simple-rtmp-server/trunk ./configure --with-ssl --with-hls --with-ffmpeg --with-http-step 2: start srs
./objs/srs -c conf/srs.conf-step 3(optinal): start srs listen at 19350 to forward to
./objs/srs -c conf/srs.19350.conf-step 4(optional): start nginx for HLS
sudo ./objs/nginx/sbin/nginx-step 5(optional): start http hooks for srs callback
python ./research/api-server/server.py 8085-step 6: publish live stream
FMS URL: rtmp://127.0.0.1:1935/live Stream: livestream @@ -53,7 +53,7 @@ For example, use ffmpeg to publish: sleep 1; \ done-step 7: add server ip to client hosts as demo.
# edit the folowing file: # linux: /etc/hosts @@ -61,13 +61,13 @@ step 7: add server ip to client hosts as demo.-step 8: play live stream.
# where server ip is 192.168.2.111 192.168.2.111 demo
rtmp url: rtmp://demo:1935/live/livestream m3u8 url: http://demo:80/live/livestream.m3u8 for android: http://demo:80/live/livestream.html-step 9: play live stream auto transcoded
rtmp url: rtmp://demo:1935/live/livestream_ld m3u8 url: http://demo:80/live/livestream_ld.m3u8 @@ -76,7 +76,7 @@ rtmp url: rtmp://demo:1935/live/livestream_sd m3u8 url: http://demo:80/live/livestream_sd.m3u8 for android: http://demo:80/live/livestream_sd.html-step 10: play live stream auto forwarded, the hls dir change to /forward
rtmp url: rtmp://demo:19350/live/livestream m3u8 url: http://demo:80/forward/live/livestream.m3u8 @@ -88,7 +88,7 @@ rtmp url: rtmp://demo:19350/live/livestream_sd m3u8 url: http://demo:80/forward/live/livestream_sd.m3u8 for android: http://demo:80/forward/live/livestream_sd.html-step 11: modify the config and reload it (all features support reload)
killall -1 srsdiff --git a/trunk/conf/srs.conf b/trunk/conf/srs.conf index 1c6777a79..a9a1368ec 100755 --- a/trunk/conf/srs.conf +++ b/trunk/conf/srs.conf @@ -28,6 +28,15 @@ vhost __defaultVhost__ { hls_fragment 5; hls_window 30; } + http_hooks { + enabled off; + on_connect http://127.0.0.1:8085/api/v1/clients; + on_close http://127.0.0.1:8085/api/v1/clients; + on_publish http://127.0.0.1:8085/api/v1/streams; + on_unpublish http://127.0.0.1:8085/api/v1/streams; + on_play http://127.0.0.1:8085/api/v1/sessions; + on_stop http://127.0.0.1:8085/api/v1/sessions; + } transcode { enabled on; ffmpeg ./objs/ffmpeg/bin/ffmpeg; @@ -85,7 +94,7 @@ vhost dev { gop_cache on; #forward 127.0.0.1:19350; hls { - enabled on; + enabled off; hls_path ./objs/nginx/html; hls_fragment 5; hls_window 30;