From 3eb41a6234f60be551ada8045dbc54137910446a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=A5=9A?= <771730766@qq.com> Date: Fri, 9 Oct 2020 09:20:57 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20MediaServer=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E7=9A=84HTTP=20HOOK=20API=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MediaServer支持的HTTP-HOOK-API.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/MediaServer支持的HTTP-HOOK-API.md b/MediaServer支持的HTTP-HOOK-API.md index 1391df0..800492f 100644 --- a/MediaServer支持的HTTP-HOOK-API.md +++ b/MediaServer支持的HTTP-HOOK-API.md @@ -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,通过配置文件设置 | - 默认回复: