提交 6e74aeb1 authored 作者: José Luis Millán's avatar José Luis Millán

SimulcastConsumer: downgrade spatial layer if current score <= 6

上级 8e5d79ea
...@@ -644,7 +644,7 @@ namespace RTC ...@@ -644,7 +644,7 @@ namespace RTC
// Downgrade is needed. // Downgrade is needed.
else if ( else if (
!this->GetProducerCurrentRtpStream() || this->GetProducerCurrentRtpStream()->GetScore() < 7 || !this->GetProducerCurrentRtpStream() || this->GetProducerCurrentRtpStream()->GetScore() < 7 ||
this->rtpStream->GetScore() < 5 || this->preferredSpatialLayer < this->currentSpatialLayer) this->rtpStream->GetScore() <= 6 || this->preferredSpatialLayer < this->currentSpatialLayer)
{ {
MS_DEBUG_TAG(simulcast, "trying to downgrade current spatial layer"); MS_DEBUG_TAG(simulcast, "trying to downgrade current spatial layer");
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论