提交 54c855d6 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

PipeConsumer.cpp: fi issue in RTCP generation that was causing lack of Sender…

PipeConsumer.cpp: fi issue in RTCP generation that was causing lack of Sender Reports for all RTP streams but the first one.

Thanks @vpalmisano for reporting it and providing super useful information at https://mediasoup.discourse.group/t/problem-using-simulcastconsumer-on-piped-transports/
上级 b1d35ba9
......@@ -241,8 +241,17 @@ namespace RTC
std::find(this->rtpStreams.begin(), this->rtpStreams.end(), rtpStream) != this->rtpStreams.end(),
"RTP stream does exist");
if (static_cast<float>((now - this->lastRtcpSentTime) * 1.15) < this->maxRtcpInterval)
// Special condition for PipeConsumer since this method will be called in a loop for
// each stream in this PipeConsumer.
// clang-format off
if (
now != this->lastRtcpSentTime &&
static_cast<float>((now - this->lastRtcpSentTime) * 1.15) < this->maxRtcpInterval
)
// clang-format on
{
return;
}
auto* report = rtpStream->GetRtcpSenderReport(now);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论