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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 didChangeIceConnectionState:(RTCIceConnectionState)newState; | 90 didChangeIceConnectionState:(RTCIceConnectionState)newState; |
91 | 91 |
92 /** Called any time the IceGatheringState changes. */ | 92 /** Called any time the IceGatheringState changes. */ |
93 - (void)peerConnection:(RTCPeerConnection *)peerConnection | 93 - (void)peerConnection:(RTCPeerConnection *)peerConnection |
94 didChangeIceGatheringState:(RTCIceGatheringState)newState; | 94 didChangeIceGatheringState:(RTCIceGatheringState)newState; |
95 | 95 |
96 /** New ice candidate has been found. */ | 96 /** New ice candidate has been found. */ |
97 - (void)peerConnection:(RTCPeerConnection *)peerConnection | 97 - (void)peerConnection:(RTCPeerConnection *)peerConnection |
98 didGenerateIceCandidate:(RTCIceCandidate *)candidate; | 98 didGenerateIceCandidate:(RTCIceCandidate *)candidate; |
99 | 99 |
| 100 /** Called when a group of local Ice candidates have been removed. */ |
| 101 - (void)peerConnection:(RTCPeerConnection *)peerConnection |
| 102 didRemoveIceCandidates:(NSArray<RTCIceCandidate *> *)candidates; |
| 103 |
100 /** New data channel has been opened. */ | 104 /** New data channel has been opened. */ |
101 - (void)peerConnection:(RTCPeerConnection *)peerConnection | 105 - (void)peerConnection:(RTCPeerConnection *)peerConnection |
102 didOpenDataChannel:(RTCDataChannel *)dataChannel; | 106 didOpenDataChannel:(RTCDataChannel *)dataChannel; |
103 | 107 |
104 @end | 108 @end |
105 | 109 |
106 RTC_EXPORT | 110 RTC_EXPORT |
107 @interface RTCPeerConnection : NSObject | 111 @interface RTCPeerConnection : NSObject |
108 | 112 |
109 /** The object that will be notifed about events such as state changes and | 113 /** The object that will be notifed about events such as state changes and |
(...skipping 24 matching lines...) Expand all Loading... |
134 * cannot be changed with this method. | 138 * cannot be changed with this method. |
135 */ | 139 */ |
136 - (BOOL)setConfiguration:(RTCConfiguration *)configuration; | 140 - (BOOL)setConfiguration:(RTCConfiguration *)configuration; |
137 | 141 |
138 /** Terminate all media and close the transport. */ | 142 /** Terminate all media and close the transport. */ |
139 - (void)close; | 143 - (void)close; |
140 | 144 |
141 /** Provide a remote candidate to the ICE Agent. */ | 145 /** Provide a remote candidate to the ICE Agent. */ |
142 - (void)addIceCandidate:(RTCIceCandidate *)candidate; | 146 - (void)addIceCandidate:(RTCIceCandidate *)candidate; |
143 | 147 |
| 148 /** Remove a group of remote candidates from the ICE Agent. */ |
| 149 - (void)removeRemoteIceCandidates:(NSArray<RTCIceCandidate *> *)candidates; |
| 150 |
144 /** Add a new media stream to be sent on this peer connection. */ | 151 /** Add a new media stream to be sent on this peer connection. */ |
145 - (void)addStream:(RTCMediaStream *)stream; | 152 - (void)addStream:(RTCMediaStream *)stream; |
146 | 153 |
147 /** Remove the given media stream from this peer connection. */ | 154 /** Remove the given media stream from this peer connection. */ |
148 - (void)removeStream:(RTCMediaStream *)stream; | 155 - (void)removeStream:(RTCMediaStream *)stream; |
149 | 156 |
150 /** Generate an SDP offer. */ | 157 /** Generate an SDP offer. */ |
151 - (void)offerForConstraints:(RTCMediaConstraints *)constraints | 158 - (void)offerForConstraints:(RTCMediaConstraints *)constraints |
152 completionHandler:(nullable void (^) | 159 completionHandler:(nullable void (^) |
153 (RTCSessionDescription * _Nullable sdp, | 160 (RTCSessionDescription * _Nullable sdp, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 */ | 203 */ |
197 - (void)statsForTrack: | 204 - (void)statsForTrack: |
198 (nullable RTCMediaStreamTrack *)mediaStreamTrack | 205 (nullable RTCMediaStreamTrack *)mediaStreamTrack |
199 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel | 206 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel |
200 completionHandler: | 207 completionHandler: |
201 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; | 208 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; |
202 | 209 |
203 @end | 210 @end |
204 | 211 |
205 NS_ASSUME_NONNULL_END | 212 NS_ASSUME_NONNULL_END |
OLD | NEW |