From a56aaf30f9b775a0a8ea3fc3a625e187e2654d47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=A5=9A?= <771730766@qq.com> Date: Sat, 8 Jul 2023 21:59:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0addStreamProxy=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MediaServer支持的HTTP-API.md | 51 +++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/MediaServer支持的HTTP-API.md b/MediaServer支持的HTTP-API.md index c5c8af5..0da4acd 100644 --- a/MediaServer支持的HTTP-API.md +++ b/MediaServer支持的HTTP-API.md @@ -588,27 +588,36 @@ typedef enum { - 参数: - | 参数 | 参数类型 | 释意 | 是否必选 | - | :--------------: | :------: | :----------------------------------------------------------: | :------: | - | secret | `string` | api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数 | Y | - | vhost | `string` | 添加的流的虚拟主机,例如`__defaultVhost__` | Y | - | app | `string` | 添加的流的应用名,例如live | Y | - | stream | `string` | 添加的流的id名,例如test | Y | - | url | `string` | 拉流地址,例如rtmp://live.hkstv.hk.lxdns.com/live/hks2 | Y | - | retry_count | `int` | 拉流重试次数,默认为-1无限重试 | N | - | rtp_type | `int` | rtsp拉流时,拉流方式,0:tcp,1:udp,2:组播 | N | - | timeout_sec | `int` | 拉流超时时间,单位秒,float类型 | N | - | `enable_hls` | `0/1` | 是否转换成hls协议 | N | - | `enable_mp4` | `0/1` | 是否允许mp4录制 | N | - | `enable_rtsp` | `0/1` | 是否转rtsp协议 | N | - | `enable_rtmp` | `0/1` | 是否转rtmp/flv协议 | N | - | `enable_ts` | `0/1` | 是否转http-ts/ws-ts协议 | N | - | `enable_fmp4` | `0/1` | 是否转http-fmp4/ws-fmp4协议 | N | - | `enable_audio` | `0/1` | 转协议时是否开启音频 | N | - | `add_mute_audio` | `0/1` | 转协议时,无音频是否添加静音aac音频 | N | - | `mp4_save_path` | `string` | mp4录制文件保存根目录,置空使用默认 | N | - | `mp4_max_second` | `int` | mp4录制切片大小,单位秒 | N | - | `hls_save_path` | `string` | hls文件保存保存根目录,置空使用默认 | N | + | 参数 | 参数类型 | 释意 | 是否必选 | + | :--------------: | :------: | :----------------------------------------------------------: | :------: | + | secret | `string` | api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数 | Y | + | vhost | `string` | 添加的流的虚拟主机,例如`__defaultVhost__` | Y | + | app | `string` | 添加的流的应用名,例如live | Y | + | stream | `string` | 添加的流的id名,例如test | Y | + | url | `string` | 拉流地址,例如rtmp://live.hkstv.hk.lxdns.com/live/hks2 | Y | + | retry_count | `int` | 拉流重试次数,默认为-1无限重试 | N | + | rtp_type | `int` | rtsp拉流时,拉流方式,0:tcp,1:udp,2:组播 | N | + | timeout_sec | `int` | 拉流超时时间,单位秒,float类型 | N | + | `enable_hls` | `bool` | 是否转换成hls-mpegts协议 | N | + | `enable_hls_fmp4` | `bool` | 是否转换成hls-fmp4协议 | N | + | `enable_mp4` | `bool` | 是否允许mp4录制 | N | + | `enable_rtsp` | `bool` | 是否转rtsp协议 | N | + | `enable_rtmp` | `bool` | 是否转rtmp/flv协议 | N | + | `enable_ts` | `bool` | 是否转http-ts/ws-ts协议 | N | + | `enable_fmp4` | `bool` | 是否转http-fmp4/ws-fmp4协议 | N | + | `hls_demand` | `bool` | 该协议是否有人观看才生成 | N | + | `rtsp_demand` | `bool` | 该协议是否有人观看才生成 | N | + | `rtmp_demand` | `bool` | 该协议是否有人观看才生成 | N | + | `ts_demand` | `bool` | 该协议是否有人观看才生成 | N | + | `fmp4_demand` | `bool` | 该协议是否有人观看才生成 | N | + | `enable_audio` | `bool` | 转协议时是否开启音频 | N | + | `add_mute_audio` | `bool` | 转协议时,无音频是否添加静音aac音频 | N | + | `mp4_save_path` | `string` | mp4录制文件保存根目录,置空使用默认 | N | + | `mp4_max_second` | `int` | mp4录制切片大小,单位秒 | N | + | `mp4_as_player` | `bool` | MP4录制是否当作观看者参与播放人数计数 | N | + | `hls_save_path` | `string` | hls文件保存保存根目录,置空使用默认 | N | + | `modify_stamp` | `int` | 该流是否开启时间戳覆盖(0:绝对时间戳/1:系统时间戳/2:相对时间戳) | N | + | `auto_close` | `bool` | 无人观看是否自动关闭流(不触发无人观看hook) | N | - 响应: