| 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 /** |
| 177 * Create an RTCRtpSender with the specified kind and media stream ID. |
| 178 * See RTCMediaStreamTrack.h for available kinds. |
| 179 */ |
| 180 - (RTCRtpSender *)senderWithKind:(NSString *)kind streamId:(NSString *)streamId; |
| 181 |
| 182 @end |
| 183 |
| 174 @interface RTCPeerConnection (DataChannel) | 184 @interface RTCPeerConnection (DataChannel) |
| 175 | 185 |
| 176 /** Create a new data channel with the given label and configuration. */ | 186 /** Create a new data channel with the given label and configuration. */ |
| 177 - (RTCDataChannel *)dataChannelForLabel:(NSString *)label | 187 - (RTCDataChannel *)dataChannelForLabel:(NSString *)label |
| 178 configuration:(RTCDataChannelConfiguration *)configuration; | 188 configuration:(RTCDataChannelConfiguration *)configuration; |
| 179 | 189 |
| 180 @end | 190 @end |
| 181 | 191 |
| 182 @interface RTCPeerConnection (Stats) | 192 @interface RTCPeerConnection (Stats) |
| 183 | 193 |
| 184 /** Gather stats for the given RTCMediaStreamTrack. If |mediaStreamTrack| is nil | 194 /** Gather stats for the given RTCMediaStreamTrack. If |mediaStreamTrack| is nil |
| 185 * statistics are gathered for all tracks. | 195 * statistics are gathered for all tracks. |
| 186 */ | 196 */ |
| 187 - (void)statsForTrack: | 197 - (void)statsForTrack: |
| 188 (nullable RTCMediaStreamTrack *)mediaStreamTrack | 198 (nullable RTCMediaStreamTrack *)mediaStreamTrack |
| 189 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel | 199 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel |
| 190 completionHandler: | 200 completionHandler: |
| 191 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; | 201 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; |
| 192 | 202 |
| 193 @end | 203 @end |
| 194 | 204 |
| 195 NS_ASSUME_NONNULL_END | 205 NS_ASSUME_NONNULL_END |
| OLD | NEW |