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 26 matching lines...) Expand all Loading... |
37 RTCRtcpMuxPolicyNegotiate, | 37 RTCRtcpMuxPolicyNegotiate, |
38 RTCRtcpMuxPolicyRequire | 38 RTCRtcpMuxPolicyRequire |
39 }; | 39 }; |
40 | 40 |
41 /** Represents the tcp candidate policy. */ | 41 /** Represents the tcp candidate policy. */ |
42 typedef NS_ENUM(NSInteger, RTCTcpCandidatePolicy) { | 42 typedef NS_ENUM(NSInteger, RTCTcpCandidatePolicy) { |
43 RTCTcpCandidatePolicyEnabled, | 43 RTCTcpCandidatePolicyEnabled, |
44 RTCTcpCandidatePolicyDisabled | 44 RTCTcpCandidatePolicyDisabled |
45 }; | 45 }; |
46 | 46 |
| 47 /** Represents the continual gathering policy. */ |
| 48 typedef NS_ENUM(NSInteger, RTCContinualGatheringPolicy) { |
| 49 RTCGatherOnce, |
| 50 RTCGatherContinually |
| 51 }; |
| 52 |
47 /** Represents the encryption key type. */ | 53 /** Represents the encryption key type. */ |
48 typedef NS_ENUM(NSInteger, RTCEncryptionKeyType) { | 54 typedef NS_ENUM(NSInteger, RTCEncryptionKeyType) { |
49 RTCEncryptionKeyTypeRSA, | 55 RTCEncryptionKeyTypeRSA, |
50 RTCEncryptionKeyTypeECDSA, | 56 RTCEncryptionKeyTypeECDSA, |
51 }; | 57 }; |
52 | 58 |
53 NS_ASSUME_NONNULL_BEGIN | 59 NS_ASSUME_NONNULL_BEGIN |
54 | 60 |
55 RTC_EXPORT | 61 RTC_EXPORT |
56 @interface RTCConfiguration : NSObject | 62 @interface RTCConfiguration : NSObject |
57 | 63 |
58 /** An array of Ice Servers available to be used by ICE. */ | 64 /** An array of Ice Servers available to be used by ICE. */ |
59 @property(nonatomic, copy) NSArray<RTCIceServer *> *iceServers; | 65 @property(nonatomic, copy) NSArray<RTCIceServer *> *iceServers; |
60 | 66 |
61 /** Which candidates the ICE agent is allowed to use. The W3C calls it | 67 /** Which candidates the ICE agent is allowed to use. The W3C calls it |
62 * |iceTransportPolicy|, while in C++ it is called |type|. */ | 68 * |iceTransportPolicy|, while in C++ it is called |type|. */ |
63 @property(nonatomic, assign) RTCIceTransportPolicy iceTransportPolicy; | 69 @property(nonatomic, assign) RTCIceTransportPolicy iceTransportPolicy; |
64 | 70 |
65 /** The media-bundling policy to use when gathering ICE candidates. */ | 71 /** The media-bundling policy to use when gathering ICE candidates. */ |
66 @property(nonatomic, assign) RTCBundlePolicy bundlePolicy; | 72 @property(nonatomic, assign) RTCBundlePolicy bundlePolicy; |
67 | 73 |
68 /** The rtcp-mux policy to use when gathering ICE candidates. */ | 74 /** The rtcp-mux policy to use when gathering ICE candidates. */ |
69 @property(nonatomic, assign) RTCRtcpMuxPolicy rtcpMuxPolicy; | 75 @property(nonatomic, assign) RTCRtcpMuxPolicy rtcpMuxPolicy; |
70 @property(nonatomic, assign) RTCTcpCandidatePolicy tcpCandidatePolicy; | 76 @property(nonatomic, assign) RTCTcpCandidatePolicy tcpCandidatePolicy; |
| 77 @property(nonatomic, assign) |
| 78 RTCContinualGatheringPolicy continualGatheringPolicy; |
71 @property(nonatomic, assign) int audioJitterBufferMaxPackets; | 79 @property(nonatomic, assign) int audioJitterBufferMaxPackets; |
72 @property(nonatomic, assign) int iceConnectionReceivingTimeout; | 80 @property(nonatomic, assign) int iceConnectionReceivingTimeout; |
73 @property(nonatomic, assign) int iceBackupCandidatePairPingInterval; | 81 @property(nonatomic, assign) int iceBackupCandidatePairPingInterval; |
74 | 82 |
75 /** Key type used to generate SSL identity. Default is ECDSA. */ | 83 /** Key type used to generate SSL identity. Default is ECDSA. */ |
76 @property(nonatomic, assign) RTCEncryptionKeyType keyType; | 84 @property(nonatomic, assign) RTCEncryptionKeyType keyType; |
77 | 85 |
78 - (instancetype)init NS_DESIGNATED_INITIALIZER; | 86 - (instancetype)init NS_DESIGNATED_INITIALIZER; |
79 | 87 |
80 @end | 88 @end |
81 | 89 |
82 NS_ASSUME_NONNULL_END | 90 NS_ASSUME_NONNULL_END |
OLD | NEW |