mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #1657, support HTTPS client, for http-callback. 4.0.45
This commit is contained in:
parent
08e19406ef
commit
d552a1a5fb
13 changed files with 343 additions and 31 deletions
|
@ -1090,6 +1090,8 @@ vhost hooks.callback.srs.com {
|
|||
# 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:
|
||||
|
@ -1104,6 +1106,8 @@ vhost hooks.callback.srs.com {
|
|||
# 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:
|
||||
|
@ -1118,6 +1122,8 @@ vhost hooks.callback.srs.com {
|
|||
# 0
|
||||
# support multiple api hooks, format:
|
||||
# on_publish http://xxx/api0 http://xxx/api1 http://xxx/apiN
|
||||
# @remark For SRS4, the HTTPS url is supported, for example:
|
||||
# on_publish https://xxx/api0 https://xxx/api1 https://xxx/apiN
|
||||
on_publish http://127.0.0.1:8085/api/v1/streams http://localhost:8085/api/v1/streams;
|
||||
# when client(encoder) stop publish to vhost/app/stream, call the hook,
|
||||
# the request in the POST data string is a object encode by json:
|
||||
|
@ -1132,6 +1138,8 @@ vhost hooks.callback.srs.com {
|
|||
# 0
|
||||
# support multiple api hooks, format:
|
||||
# on_unpublish http://xxx/api0 http://xxx/api1 http://xxx/apiN
|
||||
# @remark For SRS4, the HTTPS url is supported, for example:
|
||||
# on_unpublish https://xxx/api0 https://xxx/api1 https://xxx/apiN
|
||||
on_unpublish http://127.0.0.1:8085/api/v1/streams http://localhost:8085/api/v1/streams;
|
||||
# when client start to play vhost/app/stream, call the hook,
|
||||
# the request in the POST data string is a object encode by json:
|
||||
|
@ -1147,6 +1155,8 @@ vhost hooks.callback.srs.com {
|
|||
# 0
|
||||
# support multiple api hooks, format:
|
||||
# on_play http://xxx/api0 http://xxx/api1 http://xxx/apiN
|
||||
# @remark For SRS4, the HTTPS url is supported, for example:
|
||||
# on_play https://xxx/api0 https://xxx/api1 https://xxx/apiN
|
||||
on_play http://127.0.0.1:8085/api/v1/sessions http://localhost:8085/api/v1/sessions;
|
||||
# when client stop to play vhost/app/stream, call the hook,
|
||||
# the request in the POST data string is a object encode by json:
|
||||
|
@ -1161,6 +1171,8 @@ vhost hooks.callback.srs.com {
|
|||
# 0
|
||||
# support multiple api hooks, format:
|
||||
# on_stop http://xxx/api0 http://xxx/api1 http://xxx/apiN
|
||||
# @remark For SRS4, the HTTPS url is supported, for example:
|
||||
# on_stop https://xxx/api0 https://xxx/api1 https://xxx/apiN
|
||||
on_stop http://127.0.0.1:8085/api/v1/sessions http://localhost:8085/api/v1/sessions;
|
||||
# when srs reap a dvr file, call the hook,
|
||||
# the request in the POST data string is a object encode by json:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue