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 @class RTCConfiguration; | 13 @class RTCConfiguration; |
14 @class RTCDataChannel; | 14 @class RTCDataChannel; |
15 @class RTCDataChannelConfiguration; | 15 @class RTCDataChannelConfiguration; |
16 @class RTCIceCandidate; | 16 @class RTCIceCandidate; |
17 @class RTCMediaConstraints; | 17 @class RTCMediaConstraints; |
18 @class RTCMediaStream; | 18 @class RTCMediaStream; |
19 @class RTCMediaStreamTrack; | 19 @class RTCMediaStreamTrack; |
20 @class RTCPeerConnectionFactory; | 20 @class RTCPeerConnectionFactory; |
| 21 @class RTCRtpSender; |
21 @class RTCSessionDescription; | 22 @class RTCSessionDescription; |
22 @class RTCStatsReport; | 23 @class RTCStatsReport; |
23 | 24 |
24 NS_ASSUME_NONNULL_BEGIN | 25 NS_ASSUME_NONNULL_BEGIN |
25 | 26 |
26 extern NSString * const kRTCPeerConnectionErrorDomain; | 27 extern NSString * const kRTCPeerConnectionErrorDomain; |
27 extern int const kRTCSessionDescriptionErrorCode; | 28 extern int const kRTCSessionDescriptionErrorCode; |
28 | 29 |
29 /** Represents the signaling state of the peer connection. */ | 30 /** Represents the signaling state of the peer connection. */ |
30 typedef NS_ENUM(NSInteger, RTCSignalingState) { | 31 typedef NS_ENUM(NSInteger, RTCSignalingState) { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 @property(nonatomic, weak, nullable) id<RTCPeerConnectionDelegate> delegate; | 109 @property(nonatomic, weak, nullable) id<RTCPeerConnectionDelegate> delegate; |
109 @property(nonatomic, readonly) NSArray *localStreams; | 110 @property(nonatomic, readonly) NSArray *localStreams; |
110 @property(nonatomic, readonly, nullable) | 111 @property(nonatomic, readonly, nullable) |
111 RTCSessionDescription *localDescription; | 112 RTCSessionDescription *localDescription; |
112 @property(nonatomic, readonly, nullable) | 113 @property(nonatomic, readonly, nullable) |
113 RTCSessionDescription *remoteDescription; | 114 RTCSessionDescription *remoteDescription; |
114 @property(nonatomic, readonly) RTCSignalingState signalingState; | 115 @property(nonatomic, readonly) RTCSignalingState signalingState; |
115 @property(nonatomic, readonly) RTCIceConnectionState iceConnectionState; | 116 @property(nonatomic, readonly) RTCIceConnectionState iceConnectionState; |
116 @property(nonatomic, readonly) RTCIceGatheringState iceGatheringState; | 117 @property(nonatomic, readonly) RTCIceGatheringState iceGatheringState; |
117 | 118 |
| 119 /** Gets all RTCRtpSenders associated with this peer connection */ |
| 120 @property(nonatomic, readonly) NSArray<RTCRtpSender *> *senders; |
| 121 |
118 - (instancetype)init NS_UNAVAILABLE; | 122 - (instancetype)init NS_UNAVAILABLE; |
119 | 123 |
120 /** Sets the PeerConnection's global configuration to |configuration|. | 124 /** Sets the PeerConnection's global configuration to |configuration|. |
121 * Any changes to STUN/TURN servers or ICE candidate policy will affect the | 125 * Any changes to STUN/TURN servers or ICE candidate policy will affect the |
122 * next gathering phase, and cause the next call to createOffer to generate | 126 * next gathering phase, and cause the next call to createOffer to generate |
123 * new ICE credentials. Note that the BUNDLE and RTCP-multiplexing policies | 127 * new ICE credentials. Note that the BUNDLE and RTCP-multiplexing policies |
124 * cannot be changed with this method. | 128 * cannot be changed with this method. |
125 */ | 129 */ |
126 - (BOOL)setConfiguration:(RTCConfiguration *)configuration; | 130 - (BOOL)setConfiguration:(RTCConfiguration *)configuration; |
127 | 131 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 */ | 180 */ |
177 - (void)statsForTrack: | 181 - (void)statsForTrack: |
178 (nullable RTCMediaStreamTrack *)mediaStreamTrack | 182 (nullable RTCMediaStreamTrack *)mediaStreamTrack |
179 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel | 183 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel |
180 completionHandler: | 184 completionHandler: |
181 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; | 185 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; |
182 | 186 |
183 @end | 187 @end |
184 | 188 |
185 NS_ASSUME_NONNULL_END | 189 NS_ASSUME_NONNULL_END |
OLD | NEW |