mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Hooks: Remove on_connect and on_close from doc.
This commit is contained in:
parent
d5293e34e1
commit
cdccdf70b8
4 changed files with 0 additions and 39 deletions
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
# {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue