添加getSsrcInfo接口

夏楚
2019-12-13 14:49:37 +08:00
parent 7c1f6d7064
commit 149a1a9c96

@@ -23,7 +23,8 @@ MediaServer是ZLMediaKit的主进程目前支持以下http api接口这些
"/index/api/startRecord",
"/index/api/stopRecord",
"/index/api/getRecordStatus",
"/index/api/getMediaInfo"
"/index/api/getMediaInfo",
"/index/api/getSsrcInfo"
```
@@ -701,4 +702,31 @@ MediaServer是ZLMediaKit的主进程目前支持以下http api接口这些
}
]
}
```
```
### 21、`/index/api/getSsrcInfo`
- 功能获取rtp代理时的某路ssrc rtp信息
- 范例:[http://127.0.0.1/index/api/getSsrcInfo?ssrc=1A2B3C4D](http://127.0.0.1/index/api/getSsrcInfo?ssrc=1A2B3C4D)
- 参数:
| 参数 | 是否必选 | 释意 |
| :----: | :------: | :----------------------------------------------------------: |
| secret | Y | api操作密钥(配置文件配置)如果操作ip是127.0.0.1,则不需要此参数 |
| ssrc | Y | RTP的ssrc16进制字符串 |
- 响应:
```json
{
"code" : 0,
"exist" : true, # 是否存在
"peer_ip" : "192.168.0.23", # 推流客户端ip
"peer_port" : 54000 # 客户端端口号
}
```