update readme

This commit is contained in:
langhuihui
2023-05-17 08:05:12 +08:00
parent 5945e8b421
commit fa59cc004e
2 changed files with 22 additions and 2 deletions

View File

@@ -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

View File

@@ -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头