提交 77723d0e authored 作者: José Luis Millán's avatar José Luis Millán

SimulcastConsumer: prefer the highest spatial layer initially

If none of the provisional stream and the one being inspected have been
active for the minimum time.
上级 cb80d859
......@@ -457,7 +457,13 @@ namespace RTC
)
// clang-format on
{
continue;
const auto* provisionalProducerRtpStream =
this->producerRtpStreams.at(this->provisionalTargetSpatialLayer);
// The stream for the current provisional spatial layer has been active
// for enough time, move to the next spatial layer.
if (provisionalProducerRtpStream->GetActiveMs() >= StreamMinActiveMs)
continue;
}
// We may not yet switch to this spatial layer.
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论