diff --git a/server/WebApi.cpp b/server/WebApi.cpp index ebe24d03..63d8816e 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -1107,7 +1107,7 @@ void installWebApi() { uint8_t pt = allArgs["pt"].empty() ? 96 : allArgs["pt"].as(); bool use_ps = allArgs["use_ps"].empty() ? true : allArgs["use_ps"].as(); bool only_audio = allArgs["only_audio"].empty() ? true : allArgs["only_audio"].as(); - + TraceL << "pt "<startSendRtp(allArgs["dst_url"], allArgs["dst_port"], allArgs["ssrc"], allArgs["is_udp"], allArgs["src_port"], [val, headerOut, invoker](uint16_t local_port, const SockException &ex) mutable{ if (ex) { diff --git a/src/Common/MediaSource.cpp b/src/Common/MediaSource.cpp index 8245fae1..8c50f3b0 100644 --- a/src/Common/MediaSource.cpp +++ b/src/Common/MediaSource.cpp @@ -243,7 +243,7 @@ void MediaSource::startSendRtp(const string &dst_url, uint16_t dst_port, const s cb(0, SockException(Err_other, "尚未设置事件监听器")); return; } - return listener->startSendRtp(*this, dst_url, dst_port, ssrc, is_udp, src_port, cb, use_ps, only_audio); + return listener->startSendRtp(*this, dst_url, dst_port, ssrc, is_udp, src_port, cb, pt, use_ps, only_audio); } bool MediaSource::stopSendRtp(const string &ssrc) {