mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
整理startSendRtp相关接口,新增支持udp被动模式
startSendPassive接口指定is_udp为1时则为开启udp被动模式, 被动模式下需要对方先发数据给zlmediakit,然后才能回复rtp数据; 同时在被动模式指定src_port时,不再等待对方连接成功后再返回(而是直接返回成功和端口号,失败通知请监听on_send_rtp_stopped hook)。
This commit is contained in:
@@ -1881,7 +1881,7 @@
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "开始发送rtp(startSendRtp)",
|
||||
"name": "开始active模式发送rtp(startSendRtp)",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
@@ -1940,7 +1940,7 @@
|
||||
{
|
||||
"key": "is_udp",
|
||||
"value": "0",
|
||||
"description": "是否为udp模式,否则为tcp模式"
|
||||
"description": "1:udp active模式, 0:tcp active模式"
|
||||
},
|
||||
{
|
||||
"key": "src_port",
|
||||
@@ -1955,9 +1955,9 @@
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "use_ps",
|
||||
"key": "type",
|
||||
"value": "1",
|
||||
"description": "rtp打包采用ps还是es模式,默认采用ps模式,该参数非必选参数",
|
||||
"description": "rtp打包模式,0:es, 1: ps, 2: ts",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
@@ -1990,7 +1990,7 @@
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "开始tcp passive被动发送rtp(startSendRtpPassive)",
|
||||
"name": "开始passive模式发送rtp(startSendRtpPassive)",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
@@ -2030,6 +2030,12 @@
|
||||
"value": "1",
|
||||
"description": "rtp推流的ssrc,ssrc不同时,可以推流到多个上级服务器"
|
||||
},
|
||||
{
|
||||
"key": "is_udp",
|
||||
"value": "0",
|
||||
"disabled": true,
|
||||
"description": "1:udp passive模式, 0:tcp passive模式"
|
||||
},
|
||||
{
|
||||
"key": "src_port",
|
||||
"value": "0",
|
||||
@@ -2043,9 +2049,9 @@
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "use_ps",
|
||||
"key": "type",
|
||||
"value": "1",
|
||||
"description": "rtp打包采用ps还是es模式,默认采用ps模式,该参数非必选参数",
|
||||
"description": "rtp打包模式,0:es, 1: ps, 2: ts",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user