Add priority to RTCRtpEncodingParameters.
Expose two parameters in the Obj-C wrapper. Bug: webrtc:10438 Change-Id: I3be424720c927d95b0df908ab7cca1bb0613ada8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/135122 Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Reviewed-by: Peter Hanspers <peterhanspers@webrtc.org> Commit-Queue: Anders Carlsson <andersc@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27845}
This commit is contained in:

committed by
Commit Bot

parent
b600de286e
commit
cd16380703
@ -51,6 +51,12 @@ RTC_OBJC_EXPORT
|
||||
/** The SSRC being used by this encoding. */
|
||||
@property(nonatomic, readonly, nullable) NSNumber *ssrc;
|
||||
|
||||
/** The relative bitrate priority. */
|
||||
@property(nonatomic, assign) double bitratePriority;
|
||||
|
||||
/** The relative DiffServ Code Point priority. */
|
||||
@property(nonatomic, assign) double networkPriority;
|
||||
|
||||
- (instancetype)init NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
@end
|
||||
|
@ -22,6 +22,8 @@
|
||||
@synthesize numTemporalLayers = _numTemporalLayers;
|
||||
@synthesize scaleResolutionDownBy = _scaleResolutionDownBy;
|
||||
@synthesize ssrc = _ssrc;
|
||||
@synthesize bitratePriority = _bitratePriority;
|
||||
@synthesize networkPriority = _networkPriority;
|
||||
|
||||
- (instancetype)init {
|
||||
return [super init];
|
||||
@ -55,6 +57,8 @@
|
||||
if (nativeParameters.ssrc) {
|
||||
_ssrc = [NSNumber numberWithUnsignedLong:*nativeParameters.ssrc];
|
||||
}
|
||||
_bitratePriority = nativeParameters.bitrate_priority;
|
||||
_networkPriority = nativeParameters.network_priority;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@ -84,6 +88,8 @@
|
||||
if (_ssrc != nil) {
|
||||
parameters.ssrc = absl::optional<uint32_t>(_ssrc.unsignedLongValue);
|
||||
}
|
||||
parameters.bitrate_priority = _bitratePriority;
|
||||
parameters.network_priority = _networkPriority;
|
||||
return parameters;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user