Updated MediaServer支持的HTTP HOOK API (markdown)

夏楚
2020-10-09 09:20:57 +08:00
parent d801259036
commit 3eb41a6234

@@ -93,6 +93,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
| `ip` | `string` | 客户端ip |
| `port` | `int` | 客户端端口号 |
| `id` | `string` | TCP链接唯一ID |
| `mediaServerId` | `string` | 服务器id,通过配置文件设置 |
@@ -166,6 +167,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
| `params` | `string` | http url参数 |
| `path` | `string` | 请求访问的文件或目录 |
| `port` | `unsigned short` | http客户端端口号 |
| `mediaServerId` | `string` | 服务器id,通过配置文件设置 |
- 默认回复:
@@ -195,6 +197,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
| `err` | `string` | 不允许访问的错误提示,允许访问请置空 |
| `path` | `string` | 该客户端能访问或被禁止的顶端目录,如果为空字符串,则表述为当前目录 |
| `second` | `int` | 本次授权结果的有效期,单位秒 |
| `mediaServerId` | `string` | 服务器id,通过配置文件设置 |
@@ -246,6 +249,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
| `schema` | `string` | 播放的协议可能是rtsp、rtmp、http |
| `stream` | `string` | 流ID |
| `vhost` | `string` | 流虚拟主机 |
| `mediaServerId` | `string` | 服务器id,通过配置文件设置 |
- 默认回复:
@@ -319,6 +323,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
| `schema` | `string` | 推流的协议可能是rtsp、rtmp |
| `stream` | `string` | 流ID |
| `vhost` | `string` | 流虚拟主机 |
| `mediaServerId` | `string` | 服务器id,通过配置文件设置 |
- 默认回复:
@@ -401,6 +406,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
| `time_len` | `int` | 录制时长,单位秒 |
| `url` | `string` | http/rtsp/rtmp点播相对url路径 |
| `vhost` | `string` | 流虚拟主机 |
| `mediaServerId` | `string` | 服务器id,通过配置文件设置 |
- 默认回复:
@@ -468,6 +474,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
| `schema` | `string` | rtsp或rtsps |
| `stream` | `string` | 流ID |
| `vhost` | `string` | 流虚拟主机 |
| `mediaServerId` | `string` | 服务器id,通过配置文件设置 |
- 默认回复:
@@ -548,6 +555,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
| `stream` | `string` | 流ID |
| `user_name` | `string` | 播放用户名 |
| `vhost` | `string` | 流虚拟主机 |
| `mediaServerId` | `string` | 服务器id,通过配置文件设置 |
- 默认回复:
@@ -619,6 +627,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
| `passwd` | `bool` | telnet 终端登录用户密码 |
| `port` | `unsigned short` | telnet 终端端口号 |
| `user_name` | `string` | telnet 终端登录用户名 |
| `mediaServerId` | `string` | 服务器id,通过配置文件设置 |
- 默认回复:
@@ -685,6 +694,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
| `schema` | `string` | rtsp或rtmp |
| `stream` | `string` | 流ID |
| `vhost` | `string` | 流虚拟主机 |
| `mediaServerId` | `string` | 服务器id,通过配置文件设置 |
- 默认回复:
@@ -742,6 +752,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
| `schema` | `string` | rtsp或rtmp |
| `stream` | `string` | 流ID |
| `vhost` | `string` | 流虚拟主机 |
| `mediaServerId` | `string` | 服务器id,通过配置文件设置 |
- 默认回复:
@@ -814,6 +825,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
| `schema` | `string` | 播放的协议可能是rtsp、rtmp |
| `stream` | `string` | 流ID |
| `vhost` | `string` | 流虚拟主机 |
| `mediaServerId` | `string` | 服务器id,通过配置文件设置 |
- 默认回复: