From cbadb8bcabfc1421753593c20ce18b245b67afb4 Mon Sep 17 00:00:00 2001 From: Yura Yaroshevich Date: Wed, 17 Mar 2021 17:39:52 +0300 Subject: [PATCH] Expose offerExtmapAllowMixed in iOS SDK. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: None Change-Id: Ic14d1f005b6c727b509492399901d822bd6950db Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/212280 Commit-Queue: Kári Helgason Reviewed-by: Kári Helgason Cr-Commit-Position: refs/heads/master@{#33498} --- sdk/objc/api/peerconnection/RTCConfiguration.h | 6 ++++++ sdk/objc/api/peerconnection/RTCConfiguration.mm | 3 +++ 2 files changed, 9 insertions(+) diff --git a/sdk/objc/api/peerconnection/RTCConfiguration.h b/sdk/objc/api/peerconnection/RTCConfiguration.h index 59d3572f27..af42c4522c 100644 --- a/sdk/objc/api/peerconnection/RTCConfiguration.h +++ b/sdk/objc/api/peerconnection/RTCConfiguration.h @@ -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 diff --git a/sdk/objc/api/peerconnection/RTCConfiguration.mm b/sdk/objc/api/peerconnection/RTCConfiguration.mm index 5164a3c969..d003eed1e3 100644 --- a/sdk/objc/api/peerconnection/RTCConfiguration.mm +++ b/sdk/objc/api/peerconnection/RTCConfiguration.mm @@ -57,6 +57,7 @@ @synthesize rtcpAudioReportIntervalMs = _rtcpAudioReportIntervalMs; @synthesize rtcpVideoReportIntervalMs = _rtcpVideoReportIntervalMs; @synthesize enableImplicitRollback = _enableImplicitRollback; +@synthesize offerExtmapAllowMixed = _offerExtmapAllowMixed; - (instancetype)init { // Copy defaults. @@ -136,6 +137,7 @@ _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; } @@ -268,6 +270,7 @@ 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(); }