mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
RtpServer新增tcp主动模式支持 (#1938)
This commit is contained in:
@@ -1384,9 +1384,9 @@
|
||||
"description": "绑定的端口,0时为随机端口"
|
||||
},
|
||||
{
|
||||
"key": "enable_tcp",
|
||||
"key": "tcp_mode",
|
||||
"value": "1",
|
||||
"description": "创建 udp端口时是否同时监听tcp端口"
|
||||
"description": "tcp模式,0时为不启用tcp监听,1时为启用tcp监听,2时为tcp主动连接模式"
|
||||
},
|
||||
{
|
||||
"key": "stream_id",
|
||||
@@ -1410,6 +1410,47 @@
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "连接RTP服务器(connectRtpServer)",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "{{ZLMediaKit_URL}}/index/api/connectRtpServer?secret={{ZLMediaKit_secret}}&dst_url=127.0.0.1&dst_port=10000&stream_id=test",
|
||||
"host": [
|
||||
"{{ZLMediaKit_URL}}"
|
||||
],
|
||||
"path": [
|
||||
"index",
|
||||
"api",
|
||||
"connectRtpServer"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "secret",
|
||||
"value": "{{ZLMediaKit_secret}}",
|
||||
"description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
|
||||
},
|
||||
{
|
||||
"key": "dst_url",
|
||||
"value": "0",
|
||||
"description": "tcp主动模式时服务端地址"
|
||||
},
|
||||
{
|
||||
"key": "dst_port",
|
||||
"value": "1",
|
||||
"description": "tcp主动模式时服务端端口"
|
||||
},
|
||||
{
|
||||
"key": "stream_id",
|
||||
"value": "test",
|
||||
"description": "OpenRtpServer时绑定的流id\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "关闭RTP服务器(closeRtpServer)",
|
||||
"request": {
|
||||
|
||||
Reference in New Issue
Block a user