OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 RTCRtcpMuxPolicyNegotiate, | 35 RTCRtcpMuxPolicyNegotiate, |
36 RTCRtcpMuxPolicyRequire | 36 RTCRtcpMuxPolicyRequire |
37 }; | 37 }; |
38 | 38 |
39 /** Represents the tcp candidate policy. */ | 39 /** Represents the tcp candidate policy. */ |
40 typedef NS_ENUM(NSInteger, RTCTcpCandidatePolicy) { | 40 typedef NS_ENUM(NSInteger, RTCTcpCandidatePolicy) { |
41 RTCTcpCandidatePolicyEnabled, | 41 RTCTcpCandidatePolicyEnabled, |
42 RTCTcpCandidatePolicyDisabled | 42 RTCTcpCandidatePolicyDisabled |
43 }; | 43 }; |
44 | 44 |
| 45 /** Represents the encryption key type. */ |
| 46 typedef NS_ENUM(NSInteger, RTCEncryptionKeyType) { |
| 47 RTCEncryptionKeyTypeRSA, |
| 48 RTCEncryptionKeyTypeECDSA, |
| 49 }; |
| 50 |
45 NS_ASSUME_NONNULL_BEGIN | 51 NS_ASSUME_NONNULL_BEGIN |
46 | 52 |
47 @interface RTCConfiguration : NSObject | 53 @interface RTCConfiguration : NSObject |
48 | 54 |
49 /** An array of Ice Servers available to be used by ICE. */ | 55 /** An array of Ice Servers available to be used by ICE. */ |
50 @property(nonatomic, copy) NSArray<RTCIceServer *> *iceServers; | 56 @property(nonatomic, copy) NSArray<RTCIceServer *> *iceServers; |
51 | 57 |
52 /** Which candidates the ICE agent is allowed to use. The W3C calls it | 58 /** Which candidates the ICE agent is allowed to use. The W3C calls it |
53 * |iceTransportPolicy|, while in C++ it is called |type|. */ | 59 * |iceTransportPolicy|, while in C++ it is called |type|. */ |
54 @property(nonatomic, assign) RTCIceTransportPolicy iceTransportPolicy; | 60 @property(nonatomic, assign) RTCIceTransportPolicy iceTransportPolicy; |
55 | 61 |
56 /** The media-bundling policy to use when gathering ICE candidates. */ | 62 /** The media-bundling policy to use when gathering ICE candidates. */ |
57 @property(nonatomic, assign) RTCBundlePolicy bundlePolicy; | 63 @property(nonatomic, assign) RTCBundlePolicy bundlePolicy; |
58 | 64 |
59 /** The rtcp-mux policy to use when gathering ICE candidates. */ | 65 /** The rtcp-mux policy to use when gathering ICE candidates. */ |
60 @property(nonatomic, assign) RTCRtcpMuxPolicy rtcpMuxPolicy; | 66 @property(nonatomic, assign) RTCRtcpMuxPolicy rtcpMuxPolicy; |
61 @property(nonatomic, assign) RTCTcpCandidatePolicy tcpCandidatePolicy; | 67 @property(nonatomic, assign) RTCTcpCandidatePolicy tcpCandidatePolicy; |
62 @property(nonatomic, assign) int audioJitterBufferMaxPackets; | 68 @property(nonatomic, assign) int audioJitterBufferMaxPackets; |
63 @property(nonatomic, assign) int iceConnectionReceivingTimeout; | 69 @property(nonatomic, assign) int iceConnectionReceivingTimeout; |
64 @property(nonatomic, assign) int iceBackupCandidatePairPingInterval; | 70 @property(nonatomic, assign) int iceBackupCandidatePairPingInterval; |
65 | 71 |
| 72 /** Key type used to generate SSL identity. Default is ECDSA. */ |
| 73 @property(nonatomic, assign) RTCEncryptionKeyType keyType; |
| 74 |
66 - (instancetype)init NS_DESIGNATED_INITIALIZER; | 75 - (instancetype)init NS_DESIGNATED_INITIALIZER; |
67 | 76 |
68 - (instancetype)initWithIceServers: | |
69 (nullable NSArray<RTCIceServer *> *)iceServers | |
70 iceTransportPolicy:(RTCIceTransportPolicy)iceTransportPolicy | |
71 bundlePolicy:(RTCBundlePolicy)bundlePolicy | |
72 rtcpMuxPolicy:(RTCRtcpMuxPolicy)rtcpMuxPolicy | |
73 tcpCandidatePolicy:(RTCTcpCandidatePolicy)tcpCandidatePolicy | |
74 audioJitterBufferMaxPackets:(int)audioJitterBufferMaxPackets | |
75 iceConnectionReceivingTimeout:(int)iceConnectionReceivingTimeout | |
76 iceBackupCandidatePairPingInterval:(int)iceBackupCandidatePairPingInterval; | |
77 | |
78 @end | 77 @end |
79 | 78 |
80 NS_ASSUME_NONNULL_END | 79 NS_ASSUME_NONNULL_END |
OLD | NEW |