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 |
11 #import <Foundation/Foundation.h> | 11 #import <Foundation/Foundation.h> |
12 | 12 |
13 #import <WebRTC/RTCMacros.h> | 13 #import <WebRTC/RTCMacros.h> |
14 | 14 |
15 @class RTCConfiguration; | 15 @class RTCConfiguration; |
16 @class RTCDataChannel; | 16 @class RTCDataChannel; |
17 @class RTCDataChannelConfiguration; | 17 @class RTCDataChannelConfiguration; |
18 @class RTCIceCandidate; | 18 @class RTCIceCandidate; |
19 @class RTCMediaConstraints; | 19 @class RTCMediaConstraints; |
20 @class RTCMediaStream; | 20 @class RTCMediaStream; |
21 @class RTCMediaStreamTrack; | 21 @class RTCMediaStreamTrack; |
22 @class RTCPeerConnectionFactory; | 22 @class RTCPeerConnectionFactory; |
| 23 @class RTCRtpReceiver; |
23 @class RTCRtpSender; | 24 @class RTCRtpSender; |
24 @class RTCSessionDescription; | 25 @class RTCSessionDescription; |
25 @class RTCStatsReport; | 26 @class RTCStatsReport; |
26 | 27 |
27 NS_ASSUME_NONNULL_BEGIN | 28 NS_ASSUME_NONNULL_BEGIN |
28 | 29 |
29 extern NSString * const kRTCPeerConnectionErrorDomain; | 30 extern NSString * const kRTCPeerConnectionErrorDomain; |
30 extern int const kRTCSessionDescriptionErrorCode; | 31 extern int const kRTCSessionDescriptionErrorCode; |
31 | 32 |
32 /** Represents the signaling state of the peer connection. */ | 33 /** Represents the signaling state of the peer connection. */ |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 @property(nonatomic, readonly) RTCSignalingState signalingState; | 119 @property(nonatomic, readonly) RTCSignalingState signalingState; |
119 @property(nonatomic, readonly) RTCIceConnectionState iceConnectionState; | 120 @property(nonatomic, readonly) RTCIceConnectionState iceConnectionState; |
120 @property(nonatomic, readonly) RTCIceGatheringState iceGatheringState; | 121 @property(nonatomic, readonly) RTCIceGatheringState iceGatheringState; |
121 | 122 |
122 /** Gets all RTCRtpSenders associated with this peer connection. | 123 /** Gets all RTCRtpSenders associated with this peer connection. |
123 * Note: reading this property returns different instances of RTCRtpSender. | 124 * Note: reading this property returns different instances of RTCRtpSender. |
124 * Use isEqual: instead of == to compare RTCRtpSender instances. | 125 * Use isEqual: instead of == to compare RTCRtpSender instances. |
125 */ | 126 */ |
126 @property(nonatomic, readonly) NSArray<RTCRtpSender *> *senders; | 127 @property(nonatomic, readonly) NSArray<RTCRtpSender *> *senders; |
127 | 128 |
| 129 /** Gets all RTCRtpReceivers associated with this peer connection. |
| 130 * Note: reading this property returns different instances of RTCRtpReceiver. |
| 131 * Use isEqual: instead of == to compare RTCRtpReceiver instances. |
| 132 */ |
| 133 @property(nonatomic, readonly) NSArray<RTCRtpReceiver *> *receivers; |
| 134 |
128 - (instancetype)init NS_UNAVAILABLE; | 135 - (instancetype)init NS_UNAVAILABLE; |
129 | 136 |
130 /** Sets the PeerConnection's global configuration to |configuration|. | 137 /** Sets the PeerConnection's global configuration to |configuration|. |
131 * Any changes to STUN/TURN servers or ICE candidate policy will affect the | 138 * Any changes to STUN/TURN servers or ICE candidate policy will affect the |
132 * next gathering phase, and cause the next call to createOffer to generate | 139 * next gathering phase, and cause the next call to createOffer to generate |
133 * new ICE credentials. Note that the BUNDLE and RTCP-multiplexing policies | 140 * new ICE credentials. Note that the BUNDLE and RTCP-multiplexing policies |
134 * cannot be changed with this method. | 141 * cannot be changed with this method. |
135 */ | 142 */ |
136 - (BOOL)setConfiguration:(RTCConfiguration *)configuration; | 143 - (BOOL)setConfiguration:(RTCConfiguration *)configuration; |
137 | 144 |
(...skipping 58 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 |