mirror of
https://github.com/Monibuca/plugin-ps.git
synced 2025-12-24 12:37:59 +08:00
update readme
This commit is contained in:
12
README.en.md
12
README.en.md
@@ -17,6 +17,8 @@ https://github.com/Monibuca/plugin-ps
|
||||
|
||||
```yaml
|
||||
ps:
|
||||
http: # format refer to global config
|
||||
publish: # format refer to global config
|
||||
publish: # format refer to global config
|
||||
relaymode: 1 # 0:relay only 1:protocol transfar only 2:relay and protocol transfar
|
||||
```
|
||||
@@ -32,4 +34,12 @@ ps:
|
||||
|
||||
`/ps/api/replay?streamPath=xxx&dump=xxx`
|
||||
- dump means the file to replay, default is dump/ps
|
||||
- streamPath means the streamPath of replayed video stream, default is replay/dump/ps (if dump is abc, then streamPath is replay/abc)
|
||||
- streamPath means the streamPath of replayed video stream, default is replay/dump/ps (if dump is abc, then streamPath is replay/abc)
|
||||
|
||||
### read PS stream by ws protocol
|
||||
|
||||
`ws://[host]/ps/[streamPath]`
|
||||
|
||||
for example: ws://localhost:8080/ps/live/test
|
||||
|
||||
the data is raw PS data, without rtp header
|
||||
12
README.md
12
README.md
@@ -16,7 +16,9 @@ https://github.com/Monibuca/plugin-ps
|
||||
|
||||
```yaml
|
||||
ps:
|
||||
http: # 格式参考全局配置
|
||||
publish: # 格式参考全局配置
|
||||
subscribe: # 格式参考全局配置
|
||||
relaymode: 1 # 0:纯转发 1:转协议,不转发 2:转发并且转协议
|
||||
```
|
||||
|
||||
@@ -31,4 +33,12 @@ ps:
|
||||
|
||||
`/ps/api/replay?streamPath=xxx&dump=xxx`
|
||||
- dump 代表需要回放的文件,默认是dump/ps
|
||||
- streamPath 代表回放时生成的视频流的streamPath, 默认是replay/dump/ps (如果dump传了abc, 那么streamPath默认是replay/abc)
|
||||
- streamPath 代表回放时生成的视频流的streamPath, 默认是replay/dump/ps (如果dump传了abc, 那么streamPath默认是replay/abc)
|
||||
|
||||
### 以ws协议读取PS流
|
||||
|
||||
`ws://[host]/ps/[streamPath]`
|
||||
|
||||
例如: ws://localhost:8080/ps/live/test
|
||||
|
||||
数据包含的是裸的PS数据,不包含rtp头
|
||||
Reference in New Issue
Block a user