From 149a1a9c963bebe5809d0c1af2c8898abc170ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=A5=9A?= <771730766@qq.com> Date: Fri, 13 Dec 2019 14:49:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0getSsrcInfo=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MediaServer支持的HTTP-API.md | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) 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