diff --git a/trunk/conf/demo.conf b/trunk/conf/demo.conf index c38ee860d..b08e719f9 100644 --- a/trunk/conf/demo.conf +++ b/trunk/conf/demo.conf @@ -57,8 +57,6 @@ vhost demo.srs.com { } http_hooks { enabled on; - 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; diff --git a/trunk/conf/full.conf b/trunk/conf/full.conf index e14bf339b..fac4c81cd 100644 --- a/trunk/conf/full.conf +++ b/trunk/conf/full.conf @@ -1038,39 +1038,6 @@ vhost hooks.callback.srs.com { # whether the http hooks enable. # default off. enabled on; - # when client connect to vhost/app, call the hook, - # the request in the POST data string is a object encode by json: - # { - # "action": "on_connect", - # "client_id": 1985, - # "ip": "192.168.1.10", "vhost": "video.test.com", "app": "live", - # "tcUrl": "rtmp://video.test.com/live?key=d2fa801d08e3f90ed1e1670e6e52651a", - # "pageUrl": "http://www.test.com/live.html", "server_id": "vid-werty" - # } - # if valid, the hook must return HTTP code 200(Status OK) and response - # an int value specifies the error code(0 corresponding to success): - # 0 - # support multiple api hooks, format: - # on_connect http://xxx/api0 http://xxx/api1 http://xxx/apiN - # @remark For SRS4, the HTTPS url is supported, for example: - # on_connect https://xxx/api0 https://xxx/api1 https://xxx/apiN - on_connect http://127.0.0.1:8085/api/v1/clients http://localhost:8085/api/v1/clients; - # when client close/disconnect to vhost/app/stream, call the hook, - # the request in the POST data string is a object encode by json: - # { - # "action": "on_close", - # "client_id": 1985, - # "ip": "192.168.1.10", "vhost": "video.test.com", "app": "live", - # "send_bytes": 10240, "recv_bytes": 10240, "server_id": "vid-werty" - # } - # if valid, the hook must return HTTP code 200(Status OK) and response - # an int value specifies the error code(0 corresponding to success): - # 0 - # support multiple api hooks, format: - # on_close http://xxx/api0 http://xxx/api1 http://xxx/apiN - # @remark For SRS4, the HTTPS url is supported, for example: - # on_close https://xxx/api0 https://xxx/api1 https://xxx/apiN - on_close http://127.0.0.1:8085/api/v1/clients http://localhost:8085/api/v1/clients; # when client(encoder) publish to vhost/app/stream, call the hook, # the request in the POST data string is a object encode by json: # { diff --git a/trunk/conf/http.hooks.callback.conf b/trunk/conf/http.hooks.callback.conf index d5374d907..59f78683e 100644 --- a/trunk/conf/http.hooks.callback.conf +++ b/trunk/conf/http.hooks.callback.conf @@ -8,8 +8,6 @@ srs_log_tank console; vhost __defaultVhost__ { http_hooks { enabled on; - on_connect http://127.0.0.1:8085/api/v1/clients http://localhost:8085/api/v1/clients; - on_close http://127.0.0.1:8085/api/v1/clients http://localhost:8085/api/v1/clients; on_publish http://127.0.0.1:8085/api/v1/streams http://localhost:8085/api/v1/streams; on_unpublish http://127.0.0.1:8085/api/v1/streams http://localhost:8085/api/v1/streams; on_play http://127.0.0.1:8085/api/v1/sessions http://localhost:8085/api/v1/sessions; diff --git a/trunk/conf/https.hooks.callback.conf b/trunk/conf/https.hooks.callback.conf index 2714ce274..cdd1719eb 100644 --- a/trunk/conf/https.hooks.callback.conf +++ b/trunk/conf/https.hooks.callback.conf @@ -9,8 +9,6 @@ srs_log_tank console; vhost __defaultVhost__ { http_hooks { enabled on; - on_connect https://127.0.0.1:443/api/v1/clients; - on_close https://127.0.0.1:443/api/v1/clients; on_publish https://127.0.0.1:443/api/v1/streams; on_unpublish https://127.0.0.1:443/api/v1/streams; on_play https://127.0.0.1:443/api/v1/sessions;