| 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 * Note: reading this property returns different instances of RTCRtpSender. |
| 121 * Use isEqual: instead of == to compare RTCRtpSender instances. |
| 122 */ |
| 123 @property(nonatomic, readonly) NSArray<RTCRtpSender *> *senders; |
| 124 |
| 118 - (instancetype)init NS_UNAVAILABLE; | 125 - (instancetype)init NS_UNAVAILABLE; |
| 119 | 126 |
| 120 /** Sets the PeerConnection's global configuration to |configuration|. | 127 /** Sets the PeerConnection's global configuration to |configuration|. |
| 121 * Any changes to STUN/TURN servers or ICE candidate policy will affect the | 128 * 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 | 129 * next gathering phase, and cause the next call to createOffer to generate |
| 123 * new ICE credentials. Note that the BUNDLE and RTCP-multiplexing policies | 130 * new ICE credentials. Note that the BUNDLE and RTCP-multiplexing policies |
| 124 * cannot be changed with this method. | 131 * cannot be changed with this method. |
| 125 */ | 132 */ |
| 126 - (BOOL)setConfiguration:(RTCConfiguration *)configuration; | 133 - (BOOL)setConfiguration:(RTCConfiguration *)configuration; |
| 127 | 134 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 */ | 183 */ |
| 177 - (void)statsForTrack: | 184 - (void)statsForTrack: |
| 178 (nullable RTCMediaStreamTrack *)mediaStreamTrack | 185 (nullable RTCMediaStreamTrack *)mediaStreamTrack |
| 179 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel | 186 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel |
| 180 completionHandler: | 187 completionHandler: |
| 181 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; | 188 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; |
| 182 | 189 |
| 183 @end | 190 @end |
| 184 | 191 |
| 185 NS_ASSUME_NONNULL_END | 192 NS_ASSUME_NONNULL_END |
| OLD | NEW |