Skip to content

Commit

Permalink
Expose offerExtmapAllowMixed in iOS SDK.
Browse files Browse the repository at this point in the history
Bug: None
Change-Id: Ic14d1f005b6c727b509492399901d822bd6950db
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/212280
Commit-Queue: Kári Helgason <[email protected]>
Reviewed-by: Kári Helgason <[email protected]>
Cr-Commit-Position: refs/heads/master@{#33498}
  • Loading branch information
mstyura authored and Commit Bot committed Mar 18, 2021
1 parent 426d679 commit cbadb8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sdk/objc/api/peerconnection/RTCConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ RTC_OBJC_EXPORT
*/
@property(nonatomic, assign) BOOL enableImplicitRollback;

/**
* Control if "a=extmap-allow-mixed" is included in the offer.
* See: https://www.chromestatus.com/feature/6269234631933952
*/
@property(nonatomic, assign) BOOL offerExtmapAllowMixed;

- (instancetype)init;

@end
Expand Down
3 changes: 3 additions & 0 deletions sdk/objc/api/peerconnection/RTCConfiguration.mm
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ @implementation RTC_OBJC_TYPE (RTCConfiguration)
@synthesize rtcpAudioReportIntervalMs = _rtcpAudioReportIntervalMs;
@synthesize rtcpVideoReportIntervalMs = _rtcpVideoReportIntervalMs;
@synthesize enableImplicitRollback = _enableImplicitRollback;
@synthesize offerExtmapAllowMixed = _offerExtmapAllowMixed;

- (instancetype)init {
// Copy defaults.
Expand Down Expand Up @@ -136,6 +137,7 @@ - (instancetype)initWithNativeConfiguration:
_rtcpVideoReportIntervalMs = config.video_rtcp_report_interval_ms();
_allowCodecSwitching = config.allow_codec_switching.value_or(false);
_enableImplicitRollback = config.enable_implicit_rollback;
_offerExtmapAllowMixed = config.offer_extmap_allow_mixed;
}
return self;
}
Expand Down Expand Up @@ -268,6 +270,7 @@ - (NSString *)description {
nativeConfig->set_video_rtcp_report_interval_ms(_rtcpVideoReportIntervalMs);
nativeConfig->allow_codec_switching = _allowCodecSwitching;
nativeConfig->enable_implicit_rollback = _enableImplicitRollback;
nativeConfig->offer_extmap_allow_mixed = _offerExtmapAllowMixed;
return nativeConfig.release();
}

Expand Down

0 comments on commit cbadb8b

Please sign in to comment.