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

This commit is contained in:
xia-chu 2025-04-20 19:20:29 +08:00
parent d57c63dca6
commit 921a6505d6

View File

@ -40,6 +40,15 @@ void RtpSender::startSend(const MediaSource &sender, const MediaSourceEvent::Sen
_origin_socket = dynamic_pointer_cast<Socket>(sender.getOriginSock());
} catch (...) {
}
if (!_origin_socket) {
try {
auto process = dynamic_pointer_cast<RtpProcess>(sender.getOriginSock());
if (process) {
_origin_socket = process->getSock();
}
} catch (...) {
}
}
_args = args;
if (!_interface) {
// 重连时不重新创建对象 [AUTO-TRANSLATED:b788cd5d]