From 79a997405761af0c1810f095dfcbe009ada8982c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=A5=9A?= <771730766@qq.com> Date: Sat, 11 Jul 2020 22:52:57 +0800 Subject: [PATCH] =?UTF-8?q?getSsrcInfo=E4=BF=AE=E6=94=B9=E4=B8=BAgetRtpInf?= =?UTF-8?q?o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MediaServer支持的HTTP-API.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/MediaServer支持的HTTP-API.md b/MediaServer支持的HTTP-API.md index 5376a6d..163aa55 100644 --- a/MediaServer支持的HTTP-API.md +++ b/MediaServer支持的HTTP-API.md @@ -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的ssrc,16进制字符串 | + | stream_id | Y | RTP的ssrc,16进制字符串或者是流的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 } ```