rtp tcp级联速度太慢时主动限制上游接收速度

防止发送速度跟不上接受速度导致发送超时
This commit is contained in:
xia-chu
2025-04-20 18:53:02 +08:00
parent 986a63bb73
commit 9e6b33b02e
3 changed files with 25 additions and 3 deletions

View File

@@ -426,7 +426,7 @@ void MultiMediaSourceMuxer::startSendRtp(MediaSource &sender, const MediaSourceE
}
});
rtp_sender->startSend(args, [ssrc,ssrc_multi_send, weak_self, rtp_sender, cb, tracks, ring, poller](uint16_t local_port, const SockException &ex) mutable {
rtp_sender->startSend(sender, args, [ssrc,ssrc_multi_send, weak_self, rtp_sender, cb, tracks, ring, poller](uint16_t local_port, const SockException &ex) mutable {
cb(local_port, ex);
auto strong_self = weak_self.lock();
if (!strong_self || ex) {