提交 22f0961f authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Transport.cpp: enable tccClient on the first video Consumer:

- no need for it to be simulcast or SVC.
上级 1888e897
...@@ -817,16 +817,13 @@ namespace RTC ...@@ -817,16 +817,13 @@ namespace RTC
RTC::BweType bweType; RTC::BweType bweType;
// Use transport-cc if: // Use transport-cc if:
// - it's a simulcast or SVC Consumer, and // - it's a video Consumer, and
// - there is transport-wide-cc-01 RTP header extension, and // - there is transport-wide-cc-01 RTP header extension, and
// - there is "transport-cc" in codecs RTCP feedback. // - there is "transport-cc" in codecs RTCP feedback.
// //
// clang-format off // clang-format off
if ( if (
( consumer->GetKind() == RTC::Media::Kind::VIDEO &&
consumer->GetType() == RTC::RtpParameters::Type::SIMULCAST ||
consumer->GetType() == RTC::RtpParameters::Type::SVC
) &&
rtpHeaderExtensionIds.transportWideCc01 != 0u && rtpHeaderExtensionIds.transportWideCc01 != 0u &&
std::any_of( std::any_of(
codecs.begin(), codecs.end(), [](const RTC::RtpCodecParameters& codec) codecs.begin(), codecs.end(), [](const RTC::RtpCodecParameters& codec)
...@@ -846,16 +843,13 @@ namespace RTC ...@@ -846,16 +843,13 @@ namespace RTC
bweType = RTC::BweType::TRANSPORT_CC; bweType = RTC::BweType::TRANSPORT_CC;
} }
// Use REMB if: // Use REMB if:
// - it's a simulcast or SVC Consumer, and // - it's a video Consumer, and
// - there is abs-send-time RTP header extension, and // - there is abs-send-time RTP header extension, and
// - there is "remb" in codecs RTCP feedback. // - there is "remb" in codecs RTCP feedback.
// //
// clang-format off // clang-format off
else if ( else if (
( consumer->GetKind() == RTC::Media::Kind::VIDEO &&
consumer->GetType() == RTC::RtpParameters::Type::SIMULCAST ||
consumer->GetType() == RTC::RtpParameters::Type::SVC
) &&
rtpHeaderExtensionIds.absSendTime != 0u && rtpHeaderExtensionIds.absSendTime != 0u &&
std::any_of( std::any_of(
codecs.begin(), codecs.end(), [](const RTC::RtpCodecParameters& codec) codecs.begin(), codecs.end(), [](const RTC::RtpCodecParameters& codec)
...@@ -901,17 +895,14 @@ namespace RTC ...@@ -901,17 +895,14 @@ namespace RTC
#ifdef ENABLE_RTC_SENDER_BANDWIDTH_ESTIMATOR #ifdef ENABLE_RTC_SENDER_BANDWIDTH_ESTIMATOR
// Create SenderBandwidthEstimator if: // Create SenderBandwidthEstimator if:
// - not already created, // - not already created,
// - it's a simulcast or SVC Consumer, and // - it's a video Consumer, and
// - there is transport-wide-cc-01 RTP header extension, and // - there is transport-wide-cc-01 RTP header extension, and
// - there is "transport-cc" in codecs RTCP feedback. // - there is "transport-cc" in codecs RTCP feedback.
// //
// clang-format off // clang-format off
if ( if (
!this->senderBwe && !this->senderBwe &&
( consumer->GetKind() == RTC::Media::Kind::VIDEO &&
consumer->GetType() == RTC::RtpParameters::Type::SIMULCAST ||
consumer->GetType() == RTC::RtpParameters::Type::SVC
) &&
rtpHeaderExtensionIds.transportWideCc01 != 0u && rtpHeaderExtensionIds.transportWideCc01 != 0u &&
std::any_of( std::any_of(
codecs.begin(), codecs.end(), [](const RTC::RtpCodecParameters& codec) codecs.begin(), codecs.end(), [](const RTC::RtpCodecParameters& codec)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论