mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
Rename NetworkPriority to just Priority
This matches the web API more, since the equivalent type there is named RTCPriorityType. Bug: webrtc:5658 Change-Id: I301fed8319f7e582b558fe7cd0deee1290708c4c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/169040 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Taylor <deadbeef@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30613}
This commit is contained in:
parent
422f9dd5df
commit
a6db9c8fe9
2 changed files with 6 additions and 6 deletions
|
@ -19,10 +19,10 @@ namespace webrtc {
|
|||
|
||||
const double kDefaultBitratePriority = 1.0;
|
||||
|
||||
const double NetworkPriority::kVeryLow = 0.5;
|
||||
const double NetworkPriority::kLow = 1.0;
|
||||
const double NetworkPriority::kMedium = 2.0;
|
||||
const double NetworkPriority::kHigh = 4.0;
|
||||
const double Priority::kVeryLow = 0.5;
|
||||
const double Priority::kLow = 1.0;
|
||||
const double Priority::kMedium = 2.0;
|
||||
const double Priority::kHigh = 4.0;
|
||||
|
||||
RtcpFeedback::RtcpFeedback() = default;
|
||||
RtcpFeedback::RtcpFeedback(RtcpFeedbackType type) : type(type) {}
|
||||
|
|
|
@ -92,7 +92,7 @@ enum class DegradationPreference {
|
|||
RTC_EXPORT extern const double kDefaultBitratePriority;
|
||||
|
||||
// TODO(deadbeef): Switch to an enum class.
|
||||
struct RTC_EXPORT NetworkPriority {
|
||||
struct RTC_EXPORT Priority {
|
||||
static const double kVeryLow;
|
||||
static const double kLow;
|
||||
static const double kMedium;
|
||||
|
@ -401,7 +401,7 @@ struct RTC_EXPORT RtpEncodingParameters {
|
|||
// we follow chromium's translation of the allowed string enum values for
|
||||
// this field to 1.0, 0.5, et cetera, similar to bitrate_priority above.
|
||||
// TODO(http://crbug.com/webrtc/8630): Implement this per encoding parameter.
|
||||
double network_priority = NetworkPriority::kLow;
|
||||
double network_priority = Priority::kLow;
|
||||
|
||||
// If set, this represents the Transport Independent Application Specific
|
||||
// maximum bandwidth defined in RFC3890. If unset, there is no maximum
|
||||
|
|
Loading…
Reference in a new issue