Implement new specification for degradation preference
The degradation preference is now based on the content hint of the track if it's unspecified. Bug: webrtc:11164 Change-Id: Iaa0dbf1c1bf68a46fc5131e534d423c30c5439c7 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/161233 Commit-Queue: Florent Castelli <orphis@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30691}
This commit is contained in:
committed by
Commit Bot
parent
3c91b31162
commit
b05ca4b616
@ -609,8 +609,7 @@ struct RTC_EXPORT RtpParameters {
|
||||
// When bandwidth is constrained and the RtpSender needs to choose between
|
||||
// degrading resolution or degrading framerate, degradationPreference
|
||||
// indicates which is preferred. Only for video tracks.
|
||||
DegradationPreference degradation_preference =
|
||||
DegradationPreference::BALANCED;
|
||||
absl::optional<DegradationPreference> degradation_preference;
|
||||
|
||||
bool operator==(const RtpParameters& o) const {
|
||||
return mid == o.mid && codecs == o.codecs &&
|
||||
|
||||
Reference in New Issue
Block a user