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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 completionHandler: | 164 completionHandler: |
165 (nullable void (^)(NSError * _Nullable error))completionHandler; | 165 (nullable void (^)(NSError * _Nullable error))completionHandler; |
166 | 166 |
167 /** Apply the supplied RTCSessionDescription as the remote description. */ | 167 /** Apply the supplied RTCSessionDescription as the remote description. */ |
168 - (void)setRemoteDescription:(RTCSessionDescription *)sdp | 168 - (void)setRemoteDescription:(RTCSessionDescription *)sdp |
169 completionHandler: | 169 completionHandler: |
170 (nullable void (^)(NSError * _Nullable error))completionHandler; | 170 (nullable void (^)(NSError * _Nullable error))completionHandler; |
171 | 171 |
172 @end | 172 @end |
173 | 173 |
| 174 @interface RTCPeerConnection (Media) |
| 175 |
| 176 /** Create an RTCRtpSender with the specified kind and media stream ID. */ |
| 177 - (RTCRtpSender *)senderWithKind:(NSString *)kind streamId:(NSString *)streamId; |
| 178 |
| 179 @end |
| 180 |
174 @interface RTCPeerConnection (DataChannel) | 181 @interface RTCPeerConnection (DataChannel) |
175 | 182 |
176 /** Create a new data channel with the given label and configuration. */ | 183 /** Create a new data channel with the given label and configuration. */ |
177 - (RTCDataChannel *)dataChannelForLabel:(NSString *)label | 184 - (RTCDataChannel *)dataChannelForLabel:(NSString *)label |
178 configuration:(RTCDataChannelConfiguration *)configuration; | 185 configuration:(RTCDataChannelConfiguration *)configuration; |
179 | 186 |
180 @end | 187 @end |
181 | 188 |
182 @interface RTCPeerConnection (Stats) | 189 @interface RTCPeerConnection (Stats) |
183 | 190 |
184 /** Gather stats for the given RTCMediaStreamTrack. If |mediaStreamTrack| is nil | 191 /** Gather stats for the given RTCMediaStreamTrack. If |mediaStreamTrack| is nil |
185 * statistics are gathered for all tracks. | 192 * statistics are gathered for all tracks. |
186 */ | 193 */ |
187 - (void)statsForTrack: | 194 - (void)statsForTrack: |
188 (nullable RTCMediaStreamTrack *)mediaStreamTrack | 195 (nullable RTCMediaStreamTrack *)mediaStreamTrack |
189 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel | 196 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel |
190 completionHandler: | 197 completionHandler: |
191 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; | 198 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; |
192 | 199 |
193 @end | 200 @end |
194 | 201 |
195 NS_ASSUME_NONNULL_END | 202 NS_ASSUME_NONNULL_END |
OLD | NEW |