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 {