startSendRtpPassive接口支持同时接收流

This commit is contained in:
xiongziliang 2023-01-08 21:24:29 +08:00
parent 0374e7a660
commit fcf70c6ef1
2 changed files with 7 additions and 0 deletions

View File

@ -1743,6 +1743,12 @@
"value": "1", "value": "1",
"description": "rtp es方式打包时是否只打包音频该参数非必选参数", "description": "rtp es方式打包时是否只打包音频该参数非必选参数",
"disabled": true "disabled": true
},
{
"key": "recv_stream_id",
"value": "",
"description": "发送rtp同时接收一般用于双向语言对讲, 如果不为空说明开启接收值为接收流的id",
"disabled": true
} }
] ]
} }

View File

@ -1235,6 +1235,7 @@ void installWebApi() {
args.pt = allArgs["pt"].empty() ? 96 : allArgs["pt"].as<int>(); args.pt = allArgs["pt"].empty() ? 96 : allArgs["pt"].as<int>();
args.use_ps = allArgs["use_ps"].empty() ? true : allArgs["use_ps"].as<bool>(); args.use_ps = allArgs["use_ps"].empty() ? true : allArgs["use_ps"].as<bool>();
args.only_audio = allArgs["only_audio"].as<bool>(); args.only_audio = allArgs["only_audio"].as<bool>();
args.recv_stream_id = allArgs["recv_stream_id"];
TraceL << "startSendRtpPassive, pt " << int(args.pt) << " ps " << args.use_ps << " audio " << args.only_audio; TraceL << "startSendRtpPassive, pt " << int(args.pt) << " ps " << args.use_ps << " audio " << args.only_audio;
src->getOwnerPoller()->async([=]() mutable { src->getOwnerPoller()->async([=]() mutable {