This reverts commit 1fe80229cc0181ed04f8e8d3ab14aade218fd25d. Reason for revert: adding a RTC_OBJC_TYPE wrapper should fix the problem. Original change's description: > Revert "Expose setHeaderExtensionsToNegotiate for iOS" > > This reverts commit f88236066e65762f5543bf0ac141f23b76849126. > > Reason for revert: Thanks for the fix Karim ! Unfortunately this commit breaks some downstream projects. I'll work on a reland. > > Original change's description: > > Expose setHeaderExtensionsToNegotiate for iOS > > > > Bug: webrtc:15766 > > Change-Id: I56ec97ab272c14b4b70f6c3d7a3daedde11738c4 > > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/336100 > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> > > Reviewed-by: Peter Hanspers <peterhanspers@webrtc.org> > > Auto-Submit: Karim Ham <karim@karhm.com> > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> > > Cr-Commit-Position: refs/heads/main@{#43121} > > Bug: webrtc:15766 > Change-Id: Ie0ccf73bec192452e288b7421eb8a1ecdb0eda67 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/364284 > Owners-Override: Jeremy Leconte <jleconte@webrtc.org> > Commit-Queue: Jeremy Leconte <jleconte@webrtc.org> > Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com> > Cr-Commit-Position: refs/heads/main@{#43124} Bug: webrtc:15766 Change-Id: I827bf53764b4725a731d8d9dddad1952b7eb9100 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/364285 Reviewed-by: Florent Castelli <orphis@webrtc.org> Owners-Override: Jeremy Leconte <jleconte@webrtc.org> Commit-Queue: Jeremy Leconte <jleconte@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43128}
39 lines
1.2 KiB
Objective-C
39 lines
1.2 KiB
Objective-C
/*
|
|
* Copyright 2024 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "sdk/objc/base/RTCMacros.h"
|
|
|
|
typedef NS_ENUM(NSInteger, RTCRtpTransceiverDirection);
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
RTC_OBJC_EXPORT
|
|
@interface RTC_OBJC_TYPE (RTCRtpHeaderExtensionCapability) : NSObject
|
|
|
|
/** The URI of the RTP header extension, as defined in RFC5285. */
|
|
@property(nonatomic, readonly, copy) NSString *uri;
|
|
|
|
/** The value put in the RTP packet to identify the header extension. */
|
|
@property(nonatomic, readonly, nullable) NSNumber* preferredId;
|
|
|
|
/** Whether the header extension is encrypted or not. */
|
|
@property(nonatomic, readonly, getter=isPreferredEncrypted) BOOL preferredEncrypted;
|
|
|
|
/** Direction of the header extension. */
|
|
@property(nonatomic) RTCRtpTransceiverDirection direction;
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|