| 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/base/objc/RTCMacros.h" |
| 14 |
| 13 @class RTCConfiguration; | 15 @class RTCConfiguration; |
| 14 @class RTCDataChannel; | 16 @class RTCDataChannel; |
| 15 @class RTCDataChannelConfiguration; | 17 @class RTCDataChannelConfiguration; |
| 16 @class RTCIceCandidate; | 18 @class RTCIceCandidate; |
| 17 @class RTCMediaConstraints; | 19 @class RTCMediaConstraints; |
| 18 @class RTCMediaStream; | 20 @class RTCMediaStream; |
| 19 @class RTCMediaStreamTrack; | 21 @class RTCMediaStreamTrack; |
| 20 @class RTCPeerConnectionFactory; | 22 @class RTCPeerConnectionFactory; |
| 21 @class RTCRtpSender; | 23 @class RTCRtpSender; |
| 22 @class RTCSessionDescription; | 24 @class RTCSessionDescription; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 }; | 60 }; |
| 59 | 61 |
| 60 /** Represents the stats output level. */ | 62 /** Represents the stats output level. */ |
| 61 typedef NS_ENUM(NSInteger, RTCStatsOutputLevel) { | 63 typedef NS_ENUM(NSInteger, RTCStatsOutputLevel) { |
| 62 RTCStatsOutputLevelStandard, | 64 RTCStatsOutputLevelStandard, |
| 63 RTCStatsOutputLevelDebug, | 65 RTCStatsOutputLevelDebug, |
| 64 }; | 66 }; |
| 65 | 67 |
| 66 @class RTCPeerConnection; | 68 @class RTCPeerConnection; |
| 67 | 69 |
| 70 RTC_EXPORT |
| 68 @protocol RTCPeerConnectionDelegate <NSObject> | 71 @protocol RTCPeerConnectionDelegate <NSObject> |
| 69 | 72 |
| 70 /** Called when the SignalingState changed. */ | 73 /** Called when the SignalingState changed. */ |
| 71 - (void)peerConnection:(RTCPeerConnection *)peerConnection | 74 - (void)peerConnection:(RTCPeerConnection *)peerConnection |
| 72 didChangeSignalingState:(RTCSignalingState)stateChanged; | 75 didChangeSignalingState:(RTCSignalingState)stateChanged; |
| 73 | 76 |
| 74 /** Called when media is received on a new stream from remote peer. */ | 77 /** Called when media is received on a new stream from remote peer. */ |
| 75 - (void)peerConnection:(RTCPeerConnection *)peerConnection | 78 - (void)peerConnection:(RTCPeerConnection *)peerConnection |
| 76 didAddStream:(RTCMediaStream *)stream; | 79 didAddStream:(RTCMediaStream *)stream; |
| 77 | 80 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 93 /** New ice candidate has been found. */ | 96 /** New ice candidate has been found. */ |
| 94 - (void)peerConnection:(RTCPeerConnection *)peerConnection | 97 - (void)peerConnection:(RTCPeerConnection *)peerConnection |
| 95 didGenerateIceCandidate:(RTCIceCandidate *)candidate; | 98 didGenerateIceCandidate:(RTCIceCandidate *)candidate; |
| 96 | 99 |
| 97 /** New data channel has been opened. */ | 100 /** New data channel has been opened. */ |
| 98 - (void)peerConnection:(RTCPeerConnection *)peerConnection | 101 - (void)peerConnection:(RTCPeerConnection *)peerConnection |
| 99 didOpenDataChannel:(RTCDataChannel *)dataChannel; | 102 didOpenDataChannel:(RTCDataChannel *)dataChannel; |
| 100 | 103 |
| 101 @end | 104 @end |
| 102 | 105 |
| 103 | 106 RTC_EXPORT |
| 104 @interface RTCPeerConnection : NSObject | 107 @interface RTCPeerConnection : NSObject |
| 105 | 108 |
| 106 /** The object that will be notifed about events such as state changes and | 109 /** The object that will be notifed about events such as state changes and |
| 107 * streams being added or removed. | 110 * streams being added or removed. |
| 108 */ | 111 */ |
| 109 @property(nonatomic, weak, nullable) id<RTCPeerConnectionDelegate> delegate; | 112 @property(nonatomic, weak, nullable) id<RTCPeerConnectionDelegate> delegate; |
| 110 @property(nonatomic, readonly) NSArray *localStreams; | 113 @property(nonatomic, readonly) NSArray *localStreams; |
| 111 @property(nonatomic, readonly, nullable) | 114 @property(nonatomic, readonly, nullable) |
| 112 RTCSessionDescription *localDescription; | 115 RTCSessionDescription *localDescription; |
| 113 @property(nonatomic, readonly, nullable) | 116 @property(nonatomic, readonly, nullable) |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 */ | 186 */ |
| 184 - (void)statsForTrack: | 187 - (void)statsForTrack: |
| 185 (nullable RTCMediaStreamTrack *)mediaStreamTrack | 188 (nullable RTCMediaStreamTrack *)mediaStreamTrack |
| 186 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel | 189 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel |
| 187 completionHandler: | 190 completionHandler: |
| 188 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; | 191 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; |
| 189 | 192 |
| 190 @end | 193 @end |
| 191 | 194 |
| 192 NS_ASSUME_NONNULL_END | 195 NS_ASSUME_NONNULL_END |
| OLD | NEW |