startSendRtp接口支持指定接收流的app和vhost参数 (#3841)

This commit is contained in:
wEnchanters
2024-08-22 19:50:29 +08:00
committed by GitHub
parent cb1821cf88
commit bd40c24745
3 changed files with 9 additions and 0 deletions

View File

@@ -1404,6 +1404,9 @@ void installWebApi() {
args.udp_rtcp_timeout = allArgs["udp_rtcp_timeout"];
args.recv_stream_id = allArgs["recv_stream_id"];
args.close_delay_ms = allArgs["close_delay_ms"];
// 记录发送流的app和vhost
args.recv_stream_app = allArgs["app"];
args.recv_stream_app = allArgs["vhost"];
src->getOwnerPoller()->async([=]() mutable {
try {
src->startSendRtp(args, [val, headerOut, invoker](uint16_t local_port, const SockException &ex) mutable {