Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: webrtc/api/objc/RTCConfiguration.h

Issue 1616303002: Update API for Objective-C RTCConfiguration. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add some comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #import <Foundation/Foundation.h>
12
13 @class RTCIceServer;
14
15 /**
16 * Represents the ice transport policy. This exposes the same states in C++,
17 * which include one more state than what exists in the W3C spec.
18 */
19 typedef NS_ENUM(NSInteger, RTCIceTransportPolicy) {
20 RTCIceTransportPolicyNone,
21 RTCIceTransportPolicyRelay,
22 RTCIceTransportPolicyNoHost,
23 RTCIceTransportPolicyAll
24 };
25
26 /** Represents the bundle policy. */
27 typedef NS_ENUM(NSInteger, RTCBundlePolicy) {
28 RTCBundlePolicyBalanced,
29 RTCBundlePolicyMaxCompat,
30 RTCBundlePolicyMaxBundle
31 };
32
33 /** Represents the rtcp mux policy. */
34 typedef NS_ENUM(NSInteger, RTCRtcpMuxPolicy) {
35 RTCRtcpMuxPolicyNegotiate,
36 RTCRtcpMuxPolicyRequire
37 };
38
39 /** Represents the tcp candidate policy. */
40 typedef NS_ENUM(NSInteger, RTCTcpCandidatePolicy) {
41 RTCTcpCandidatePolicyEnabled,
42 RTCTcpCandidatePolicyDisabled
43 };
44
45 NS_ASSUME_NONNULL_BEGIN
46
47 @interface RTCConfiguration : NSObject
48
49 /** An array of Ice Servers available to be used by ICE. */
50 @property(nonatomic, readonly, nullable) NSArray<RTCIceServer *> *iceServers;
tkchin_webrtc 2016/01/22 21:17:04 nullable or returns empty array?
hjon_webrtc 2016/01/22 21:35:22 Done.
51
52 /** Which candidates the ICE agent is allowed to use. */
53 @property(nonatomic, readonly) RTCIceTransportPolicy iceTransportPolicy;
54
55 /** The media-bundling policy to use when gathering ICE candidates. */
56 @property(nonatomic, readonly) RTCBundlePolicy bundlePolicy;
57
58 /** The rtcp-mux policy to use when gathering ICE candidates. */
59 @property(nonatomic, readonly) RTCRtcpMuxPolicy rtcpMuxPolicy;
60 @property(nonatomic, readonly) RTCTcpCandidatePolicy tcpCandidatePolicy;
61 @property(nonatomic, readonly) int audioJitterBufferMaxPackets;
62 @property(nonatomic, readonly) int iceConnectionReceivingTimeout;
63 @property(nonatomic, readonly) int iceBackupCandidatePairPingInterval;
64
65 - (instancetype)init NS_DESIGNATED_INITIALIZER;
66
67 - (instancetype)initWithIceServers:
68 (nullable NSArray<RTCIceServer *> *)iceServers
69 iceTransportPolicy:(RTCIceTransportPolicy)iceTransportPolicy
70 bundlePolicy:(RTCBundlePolicy)bundlePolicy
71 rtcpMuxPolicy:(RTCRtcpMuxPolicy)rtcpMuxPolicy
72 tcpCandidatePolicy:(RTCTcpCandidatePolicy)tcpCandidatePolicy
73 audioJitterBufferMaxPackets:(int)audioJitterBufferMaxPackets
74 iceConnectionReceivingTimeout:(int)iceConnectionReceivingTimeout
75 iceBackupCandidatePairPingInterval:(int)iceBackupCandidatePairPingInterval;
76
77 @end
78
79 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698