docs: udpate readme

This commit is contained in:
langhuihui
2023-08-06 15:50:22 +08:00
parent 080dc3a808
commit b4389cce61
2 changed files with 6 additions and 3 deletions

View File

@@ -45,8 +45,9 @@ ffplay http://localhost:8080/hdl/live/test.flv
### M7S Pull HTTP-FLV Streams from Remote
The available API is:
`/hdl/api/pull?target=[HTTP-FLV address]&streamPath=[stream identifier]&save=[whether to save configuration (leave blank if not)]`
`/hdl/api/pull?target=[HTTP-FLV address]&streamPath=[stream identifier]&save=[0|1|2]`
- save meaning: 0 - do not save 1 - save to pullonstart 2 - save to pullonsub
- HTTP-FLV address needs to be urlencoded to prevent special characters from affecting parsing
### Get a List of All HDL Streams
`/hdl/api/list`

View File

@@ -42,7 +42,9 @@ ffplay http://localhost:8080/hdl/live/test.flv
### m7s从远程拉取http-flv协议流
可调用接口
`/hdl/api/pull?target=[HTTP-FLV地址]&streamPath=[流标识]&save=[是否保存配置(留空则不保存)]`
`/hdl/api/pull?target=[HTTP-FLV地址]&streamPath=[流标识]&save=[0|1|2]`
- save含义 0-不保存 1-保存到pullonstart 2-保存到pullonsub
- HTTP-FLV地址需要进行urlencode 防止其中的特殊字符影响解析
### 获取所有HDL流列表
`/hdl/api/list`