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

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: Update against master 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, copy) NSArray<RTCIceServer *> *iceServers;
51
52 /** Which candidates the ICE agent is allowed to use. The W3C calls it
53 * |iceTransportPolicy|, while in C++ it is called |type|. */
54 @property(nonatomic, assign) RTCIceTransportPolicy iceTransportPolicy;
55
56 /** The media-bundling policy to use when gathering ICE candidates. */
57 @property(nonatomic, assign) RTCBundlePolicy bundlePolicy;
58
59 /** The rtcp-mux policy to use when gathering ICE candidates. */
60 @property(nonatomic, assign) RTCRtcpMuxPolicy rtcpMuxPolicy;
61 @property(nonatomic, assign) RTCTcpCandidatePolicy tcpCandidatePolicy;
62 @property(nonatomic, assign) int audioJitterBufferMaxPackets;
63 @property(nonatomic, assign) int iceConnectionReceivingTimeout;
64 @property(nonatomic, assign) int iceBackupCandidatePairPingInterval;
65
66 - (instancetype)init NS_DESIGNATED_INITIALIZER;
67
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
79
80 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698