OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 typedef NS_ENUM(NSInteger, RTCRtcpMuxPolicy) { | 47 typedef NS_ENUM(NSInteger, RTCRtcpMuxPolicy) { |
48 kRTCRtcpMuxPolicyNegotiate, | 48 kRTCRtcpMuxPolicyNegotiate, |
49 kRTCRtcpMuxPolicyRequire, | 49 kRTCRtcpMuxPolicyRequire, |
50 }; | 50 }; |
51 | 51 |
52 typedef NS_ENUM(NSInteger, RTCTcpCandidatePolicy) { | 52 typedef NS_ENUM(NSInteger, RTCTcpCandidatePolicy) { |
53 kRTCTcpCandidatePolicyEnabled, | 53 kRTCTcpCandidatePolicyEnabled, |
54 kRTCTcpCandidatePolicyDisabled, | 54 kRTCTcpCandidatePolicyDisabled, |
55 }; | 55 }; |
56 | 56 |
| 57 typedef NS_ENUM(NSInteger, RTCEncryptionKeyType) { |
| 58 kRTCEncryptionKeyTypeRSA, |
| 59 kRTCEncryptionKeyTypeECDSA, |
| 60 }; |
| 61 |
57 // Configuration object used for creating a peer connection. | 62 // Configuration object used for creating a peer connection. |
58 @interface RTCConfiguration : NSObject | 63 @interface RTCConfiguration : NSObject |
59 | 64 |
60 @property(nonatomic, assign) RTCIceTransportsType iceTransportsType; | 65 @property(nonatomic, assign) RTCIceTransportsType iceTransportsType; |
61 @property(nonatomic, copy) NSArray *iceServers; | 66 @property(nonatomic, copy) NSArray *iceServers; |
62 @property(nonatomic, assign) RTCBundlePolicy bundlePolicy; | 67 @property(nonatomic, assign) RTCBundlePolicy bundlePolicy; |
63 @property(nonatomic, assign) RTCRtcpMuxPolicy rtcpMuxPolicy; | 68 @property(nonatomic, assign) RTCRtcpMuxPolicy rtcpMuxPolicy; |
64 @property(nonatomic, assign) RTCTcpCandidatePolicy tcpCandidatePolicy; | 69 @property(nonatomic, assign) RTCTcpCandidatePolicy tcpCandidatePolicy; |
65 @property(nonatomic, assign) int audioJitterBufferMaxPackets; | 70 @property(nonatomic, assign) int audioJitterBufferMaxPackets; |
66 @property(nonatomic, assign) int iceConnectionReceivingTimeout; | 71 @property(nonatomic, assign) int iceConnectionReceivingTimeout; |
67 @property(nonatomic, assign) int iceBackupCandidatePairPingInterval; | 72 @property(nonatomic, assign) int iceBackupCandidatePairPingInterval; |
| 73 @property(nonatomic, assign) RTCEncryptionKeyType keyType; |
68 | 74 |
69 - (instancetype)initWithIceTransportsType:(RTCIceTransportsType)iceTransportsTyp
e | 75 - (instancetype)initWithIceTransportsType:(RTCIceTransportsType)iceTransportsTyp
e |
70 bundlePolicy:(RTCBundlePolicy)bundlePolicy | 76 bundlePolicy:(RTCBundlePolicy)bundlePolicy |
71 rtcpMuxPolicy:(RTCRtcpMuxPolicy)rtcpMuxPolicy | 77 rtcpMuxPolicy:(RTCRtcpMuxPolicy)rtcpMuxPolicy |
72 tcpCandidatePolicy:(RTCTcpCandidatePolicy)tcpCandidatePol
icy | 78 tcpCandidatePolicy:(RTCTcpCandidatePolicy)tcpCandidatePol
icy |
73 audioJitterBufferMaxPackets:(int)audioJitterBufferMaxPackets | 79 audioJitterBufferMaxPackets:(int)audioJitterBufferMaxPackets |
74 iceConnectionReceivingTimeout:(int)iceConnectionReceivingTimeout | 80 iceConnectionReceivingTimeout:(int)iceConnectionReceivingTimeout |
75 iceBackupCandidatePairPingInterval:(int)iceBackupCandidatePairPingInterva
l; | 81 iceBackupCandidatePairPingInterval:(int)iceBackupCandidatePairPingInterva
l; |
76 | 82 |
77 @end | 83 @end |
OLD | NEW |