提交 83ee658c authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Transport.cpp: (revert) Just enable tccClient if simulcast or SVC Consumer

上级 bf267125
...@@ -797,13 +797,16 @@ namespace RTC ...@@ -797,13 +797,16 @@ namespace RTC
RTC::BweType bweType; RTC::BweType bweType;
// Use transport-cc if: // Use transport-cc if:
// - it's video, and // - it's a simulcast or SVC 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)
...@@ -823,13 +826,16 @@ namespace RTC ...@@ -823,13 +826,16 @@ namespace RTC
bweType = RTC::BweType::TRANSPORT_CC; bweType = RTC::BweType::TRANSPORT_CC;
} }
// Use REMB if: // Use REMB if:
// - it's video, and // - it's a simulcast or SVC 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)
...@@ -875,14 +881,17 @@ namespace RTC ...@@ -875,14 +881,17 @@ 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 video, and // - it's a simulcast or SVC 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 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论