getSsrcInfo修改为getRtpInfo

夏楚
2020-07-11 22:52:57 +08:00
parent 1883d93c74
commit 79a9974057

@@ -26,7 +26,7 @@ MediaServer是ZLMediaKit的主进程目前支持以下http api接口这些
"/index/api/setServerConfig",
"/index/api/isMediaOnline",
"/index/api/getMediaInfo",
"/index/api/getSsrcInfo",
"/index/api/getRtpInfo",
"/index/api/getMp4RecordFile",
"/index/api/startRecord",
"/index/api/stopRecord",
@@ -664,18 +664,18 @@ typedef enum {
}
```
### 18、`/index/api/getSsrcInfo`
### 18、`/index/api/getRtpInfo`
- 功能获取rtp代理时的某路ssrc rtp信息
- 范例:[http://127.0.0.1/index/api/getSsrcInfo?ssrc=1A2B3C4D](http://127.0.0.1/index/api/getSsrcInfo?ssrc=1A2B3C4D)
- 范例:[http://127.0.0.1/index/api/getRtpInfo?stream_id=1A2B3C4D](http://127.0.0.1/index/api/getRtpInfo?ssrc=1A2B3C4D)
- 参数:
| 参数 | 是否必选 | 释意 |
| :----: | :------: | :----------------------------------------------------------: |
| secret | Y | api操作密钥(配置文件配置)如果操作ip是127.0.0.1,则不需要此参数 |
| ssrc | Y | RTP的ssrc16进制字符串 |
| stream_id | Y | RTP的ssrc16进制字符串或者是流的id(openRtpServer接口指定) |
- 响应:
@@ -686,6 +686,8 @@ typedef enum {
"exist" : true, # 是否存在
"peer_ip" : "192.168.0.23", # 推流客户端ip
"peer_port" : 54000 # 客户端端口号
"local_ip" : "0.0.0.0", #本地监听的网卡ip
"local_port" : 10000
}
```