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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 - (instancetype)initWithFactory: | 122 - (instancetype)initWithFactory: |
123 (RTCPeerConnectionFactory *)factory | 123 (RTCPeerConnectionFactory *)factory |
124 configuration: | 124 configuration: |
125 (RTCConfiguration *)configuration | 125 (RTCConfiguration *)configuration |
126 constraints: | 126 constraints: |
127 (RTCMediaConstraints *)constraints | 127 (RTCMediaConstraints *)constraints |
128 delegate: | 128 delegate: |
129 (nullable id<RTCPeerConnectionDelegate>)delegate | 129 (nullable id<RTCPeerConnectionDelegate>)delegate |
130 NS_DESIGNATED_INITIALIZER; | 130 NS_DESIGNATED_INITIALIZER; |
131 | 131 |
| 132 /** Sets the PeerConnection's global configuration to |configuration|. |
| 133 * Any changes to STUN/TURN servers or ICE candidate policy will affect the |
| 134 * next gathering phase, and cause the next call to createOffer to generate |
| 135 * new ICE credentials. Note that the BUNDLE and RTCP-multiplexing policies |
| 136 * cannot be changed with this method. |
| 137 */ |
| 138 - (BOOL)setConfiguration:(RTCConfiguration *)configuration; |
| 139 |
132 /** Terminate all media and close the transport. */ | 140 /** Terminate all media and close the transport. */ |
133 - (void)close; | 141 - (void)close; |
134 | 142 |
135 /** Provide a remote candidate to the ICE Agent. */ | 143 /** Provide a remote candidate to the ICE Agent. */ |
136 - (void)addIceCandidate:(RTCIceCandidate *)candidate; | 144 - (void)addIceCandidate:(RTCIceCandidate *)candidate; |
137 | 145 |
138 /** Add a new media stream to be sent on this peer connection. */ | 146 /** Add a new media stream to be sent on this peer connection. */ |
139 - (void)addStream:(RTCMediaStream *)stream; | 147 - (void)addStream:(RTCMediaStream *)stream; |
140 | 148 |
141 /** Remove the given media stream from this peer connection. */ | 149 /** Remove the given media stream from this peer connection. */ |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 */ | 188 */ |
181 - (void)statsForTrack: | 189 - (void)statsForTrack: |
182 (nullable RTCMediaStreamTrack *)mediaStreamTrack | 190 (nullable RTCMediaStreamTrack *)mediaStreamTrack |
183 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel | 191 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel |
184 completionHandler: | 192 completionHandler: |
185 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; | 193 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; |
186 | 194 |
187 @end | 195 @end |
188 | 196 |
189 NS_ASSUME_NONNULL_END | 197 NS_ASSUME_NONNULL_END |
OLD | NEW |