From fcf70c6ef13354ba38ef8a01e05f18cbe532c4f9 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 8 Jan 2023 21:24:29 +0800 Subject: [PATCH] =?UTF-8?q?startSendRtpPassive=E6=8E=A5=E5=8F=A3=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=90=8C=E6=97=B6=E6=8E=A5=E6=94=B6=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postman/ZLMediaKit.postman_collection.json | 6 ++++++ server/WebApi.cpp | 1 + 2 files changed, 7 insertions(+) diff --git a/postman/ZLMediaKit.postman_collection.json b/postman/ZLMediaKit.postman_collection.json index 38829c06..7287f1ed 100644 --- a/postman/ZLMediaKit.postman_collection.json +++ b/postman/ZLMediaKit.postman_collection.json @@ -1743,6 +1743,12 @@ "value": "1", "description": "rtp es方式打包时,是否只打包音频,该参数非必选参数", "disabled": true + }, + { + "key": "recv_stream_id", + "value": "", + "description": "发送rtp同时接收,一般用于双向语言对讲, 如果不为空,说明开启接收,值为接收流的id", + "disabled": true } ] } diff --git a/server/WebApi.cpp b/server/WebApi.cpp index 11926de4..217ff4d9 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -1235,6 +1235,7 @@ void installWebApi() { args.pt = allArgs["pt"].empty() ? 96 : allArgs["pt"].as(); args.use_ps = allArgs["use_ps"].empty() ? true : allArgs["use_ps"].as(); args.only_audio = allArgs["only_audio"].as(); + args.recv_stream_id = allArgs["recv_stream_id"]; TraceL << "startSendRtpPassive, pt " << int(args.pt) << " ps " << args.use_ps << " audio " << args.only_audio; src->getOwnerPoller()->async([=]() mutable {