| 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 15 matching lines...) Expand all Loading... |
| 26 extern NSString * const kRTCPeerConnectionErrorDomain; | 26 extern NSString * const kRTCPeerConnectionErrorDomain; |
| 27 extern int const kRTCSessionDescriptionErrorCode; | 27 extern int const kRTCSessionDescriptionErrorCode; |
| 28 | 28 |
| 29 /** Represents the signaling state of the peer connection. */ | 29 /** Represents the signaling state of the peer connection. */ |
| 30 typedef NS_ENUM(NSInteger, RTCSignalingState) { | 30 typedef NS_ENUM(NSInteger, RTCSignalingState) { |
| 31 RTCSignalingStateStable, | 31 RTCSignalingStateStable, |
| 32 RTCSignalingStateHaveLocalOffer, | 32 RTCSignalingStateHaveLocalOffer, |
| 33 RTCSignalingStateHaveLocalPrAnswer, | 33 RTCSignalingStateHaveLocalPrAnswer, |
| 34 RTCSignalingStateHaveRemoteOffer, | 34 RTCSignalingStateHaveRemoteOffer, |
| 35 RTCSignalingStateHaveRemotePrAnswer, | 35 RTCSignalingStateHaveRemotePrAnswer, |
| 36 // Not an actual state, represents the total number of states. |
| 36 RTCSignalingStateClosed, | 37 RTCSignalingStateClosed, |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 /** Represents the ice connection state of the peer connection. */ | 40 /** Represents the ice connection state of the peer connection. */ |
| 40 typedef NS_ENUM(NSInteger, RTCIceConnectionState) { | 41 typedef NS_ENUM(NSInteger, RTCIceConnectionState) { |
| 41 RTCIceConnectionStateNew, | 42 RTCIceConnectionStateNew, |
| 42 RTCIceConnectionStateChecking, | 43 RTCIceConnectionStateChecking, |
| 43 RTCIceConnectionStateConnected, | 44 RTCIceConnectionStateConnected, |
| 44 RTCIceConnectionStateCompleted, | 45 RTCIceConnectionStateCompleted, |
| 45 RTCIceConnectionStateFailed, | 46 RTCIceConnectionStateFailed, |
| 46 RTCIceConnectionStateDisconnected, | 47 RTCIceConnectionStateDisconnected, |
| 47 RTCIceConnectionStateClosed, | 48 RTCIceConnectionStateClosed, |
| 48 RTCIceConnectionStateMax, | 49 RTCIceConnectionStateCount, |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 /** Represents the ice gathering state of the peer connection. */ | 52 /** Represents the ice gathering state of the peer connection. */ |
| 52 typedef NS_ENUM(NSInteger, RTCIceGatheringState) { | 53 typedef NS_ENUM(NSInteger, RTCIceGatheringState) { |
| 53 RTCIceGatheringStateNew, | 54 RTCIceGatheringStateNew, |
| 54 RTCIceGatheringStateGathering, | 55 RTCIceGatheringStateGathering, |
| 55 RTCIceGatheringStateComplete, | 56 RTCIceGatheringStateComplete, |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 /** Represents the stats output level. */ | 59 /** Represents the stats output level. */ |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 */ | 189 */ |
| 189 - (void)statsForTrack: | 190 - (void)statsForTrack: |
| 190 (nullable RTCMediaStreamTrack *)mediaStreamTrack | 191 (nullable RTCMediaStreamTrack *)mediaStreamTrack |
| 191 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel | 192 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel |
| 192 completionHandler: | 193 completionHandler: |
| 193 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; | 194 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; |
| 194 | 195 |
| 195 @end | 196 @end |
| 196 | 197 |
| 197 NS_ASSUME_NONNULL_END | 198 NS_ASSUME_NONNULL_END |
| OLD | NEW |