diff --git a/MediaServer支持的HTTP-API.md b/MediaServer支持的HTTP-API.md index 2b8093c..d0d4a31 100644 --- a/MediaServer支持的HTTP-API.md +++ b/MediaServer支持的HTTP-API.md @@ -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接口,这些 } ] } - ``` \ No newline at end of file + ``` + +### 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的ssrc,16进制字符串 | + + + - 响应: + + ```json + { + "code" : 0, + "exist" : true, # 是否存在 + "peer_ip" : "192.168.0.23", # 推流客户端ip + "peer_port" : 54000 # 客户端端口号 + } + ``` + + \ No newline at end of file