| 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 NS_ASSUME_NONNULL_BEGIN | 15 NS_ASSUME_NONNULL_BEGIN |
| 16 | 16 |
| 17 @class RTCAVFoundationVideoSource; | 17 @class RTCAVFoundationVideoSource; |
| 18 @class RTCAudioSource; |
| 18 @class RTCAudioTrack; | 19 @class RTCAudioTrack; |
| 19 @class RTCConfiguration; | 20 @class RTCConfiguration; |
| 20 @class RTCMediaConstraints; | 21 @class RTCMediaConstraints; |
| 21 @class RTCMediaStream; | 22 @class RTCMediaStream; |
| 22 @class RTCPeerConnection; | 23 @class RTCPeerConnection; |
| 23 @class RTCVideoSource; | 24 @class RTCVideoSource; |
| 24 @class RTCVideoTrack; | 25 @class RTCVideoTrack; |
| 25 @protocol RTCPeerConnectionDelegate; | 26 @protocol RTCPeerConnectionDelegate; |
| 26 | 27 |
| 27 RTC_EXPORT | 28 RTC_EXPORT |
| 28 @interface RTCPeerConnectionFactory : NSObject | 29 @interface RTCPeerConnectionFactory : NSObject |
| 29 | 30 |
| 30 - (instancetype)init NS_DESIGNATED_INITIALIZER; | 31 - (instancetype)init NS_DESIGNATED_INITIALIZER; |
| 31 | 32 |
| 33 /** Initialize an RTCAudioSource with constraints. */ |
| 34 - (RTCAudioSource *)audioSourceWithConstraints:(nullable RTCMediaConstraints *)c
onstraints; |
| 35 |
| 36 /** Initialize an RTCAudioTrack with an id. Convenience ctor to use an audio sou
rce with no |
| 37 * constraints. |
| 38 */ |
| 39 - (RTCAudioTrack *)audioTrackWithTrackId:(NSString *)trackId; |
| 40 |
| 41 /** Initialize an RTCAudioTrack with a source and an id. */ |
| 42 - (RTCAudioTrack *)audioTrackWithSource:(RTCAudioSource *)source |
| 43 trackId:(NSString *)trackId; |
| 44 |
| 32 /** Initialize an RTCAVFoundationVideoSource with constraints. */ | 45 /** Initialize an RTCAVFoundationVideoSource with constraints. */ |
| 33 - (RTCAVFoundationVideoSource *)avFoundationVideoSourceWithConstraints: | 46 - (RTCAVFoundationVideoSource *)avFoundationVideoSourceWithConstraints: |
| 34 (nullable RTCMediaConstraints *)constraints; | 47 (nullable RTCMediaConstraints *)constraints; |
| 35 | 48 |
| 36 /** Initialize an RTCAudioTrack with an id. */ | |
| 37 - (RTCAudioTrack *)audioTrackWithTrackId:(NSString *)trackId; | |
| 38 | |
| 39 /** Initialize an RTCVideoTrack with a source and an id. */ | 49 /** Initialize an RTCVideoTrack with a source and an id. */ |
| 40 - (RTCVideoTrack *)videoTrackWithSource:(RTCVideoSource *)source | 50 - (RTCVideoTrack *)videoTrackWithSource:(RTCVideoSource *)source |
| 41 trackId:(NSString *)trackId; | 51 trackId:(NSString *)trackId; |
| 42 | 52 |
| 43 /** Initialize an RTCMediaStream with an id. */ | 53 /** Initialize an RTCMediaStream with an id. */ |
| 44 - (RTCMediaStream *)mediaStreamWithStreamId:(NSString *)streamId; | 54 - (RTCMediaStream *)mediaStreamWithStreamId:(NSString *)streamId; |
| 45 | 55 |
| 46 /** Initialize an RTCPeerConnection with a configuration, constraints, and | 56 /** Initialize an RTCPeerConnection with a configuration, constraints, and |
| 47 * delegate. | 57 * delegate. |
| 48 */ | 58 */ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 59 This API call will likely change in the future */ | 69 This API call will likely change in the future */ |
| 60 - (BOOL)startAecDumpWithFileDescriptor:(int)fileDescriptor | 70 - (BOOL)startAecDumpWithFileDescriptor:(int)fileDescriptor |
| 61 maxFileSizeInBytes:(int)maxFileSizeInBytes; | 71 maxFileSizeInBytes:(int)maxFileSizeInBytes; |
| 62 | 72 |
| 63 /* Stop an active aecdump recording */ | 73 /* Stop an active aecdump recording */ |
| 64 - (void)stopAecDump; | 74 - (void)stopAecDump; |
| 65 | 75 |
| 66 @end | 76 @end |
| 67 | 77 |
| 68 NS_ASSUME_NONNULL_END | 78 NS_ASSUME_NONNULL_END |
| OLD | NEW |