| 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 RTCAudioSource; |
| 19 @class RTCAudioTrack; | 19 @class RTCAudioTrack; |
| 20 @class RTCConfiguration; | 20 @class RTCConfiguration; |
| 21 @class RTCMediaConstraints; | 21 @class RTCMediaConstraints; |
| 22 @class RTCMediaStream; | 22 @class RTCMediaStream; |
| 23 @class RTCPeerConnection; | 23 @class RTCPeerConnection; |
| 24 @class RTCVideoSource; | 24 @class RTCVideoSource; |
| 25 @class RTCVideoTrack; | 25 @class RTCVideoTrack; |
| 26 @protocol RTCPeerConnectionDelegate; | 26 @protocol RTCPeerConnectionDelegate; |
| 27 @protocol RTCVideoEncoderFactory; | |
| 28 @protocol RTCVideoDecoderFactory; | |
| 29 | 27 |
| 30 RTC_EXPORT | 28 RTC_EXPORT |
| 31 @interface RTCPeerConnectionFactory : NSObject | 29 @interface RTCPeerConnectionFactory : NSObject |
| 32 | 30 |
| 33 /* Initialize object with default H264 video encoder/decoder factories */ | 31 - (instancetype)init NS_DESIGNATED_INITIALIZER; |
| 34 - (instancetype)init; | |
| 35 | |
| 36 /* Initialize object with injectable video encoder/decoder factories */ | |
| 37 - (instancetype)initWithEncoderFactory:(nullable id<RTCVideoEncoderFactory>)enco
derFactory | |
| 38 decoderFactory:(nullable id<RTCVideoDecoderFactory>)deco
derFactory | |
| 39 NS_DESIGNATED_INITIALIZER; | |
| 40 | 32 |
| 41 /** Initialize an RTCAudioSource with constraints. */ | 33 /** Initialize an RTCAudioSource with constraints. */ |
| 42 - (RTCAudioSource *)audioSourceWithConstraints:(nullable RTCMediaConstraints *)c
onstraints; | 34 - (RTCAudioSource *)audioSourceWithConstraints:(nullable RTCMediaConstraints *)c
onstraints; |
| 43 | 35 |
| 44 /** Initialize an RTCAudioTrack with an id. Convenience ctor to use an audio sou
rce with no | 36 /** Initialize an RTCAudioTrack with an id. Convenience ctor to use an audio sou
rce with no |
| 45 * constraints. | 37 * constraints. |
| 46 */ | 38 */ |
| 47 - (RTCAudioTrack *)audioTrackWithTrackId:(NSString *)trackId; | 39 - (RTCAudioTrack *)audioTrackWithTrackId:(NSString *)trackId; |
| 48 | 40 |
| 49 /** Initialize an RTCAudioTrack with a source and an id. */ | 41 /** Initialize an RTCAudioTrack with a source and an id. */ |
| (...skipping 29 matching lines...) Expand all Loading... |
| 79 /** Start an AecDump recording. This API call will likely change in the future.
*/ | 71 /** Start an AecDump recording. This API call will likely change in the future.
*/ |
| 80 - (BOOL)startAecDumpWithFilePath:(NSString *)filePath | 72 - (BOOL)startAecDumpWithFilePath:(NSString *)filePath |
| 81 maxSizeInBytes:(int64_t)maxSizeInBytes; | 73 maxSizeInBytes:(int64_t)maxSizeInBytes; |
| 82 | 74 |
| 83 /* Stop an active AecDump recording */ | 75 /* Stop an active AecDump recording */ |
| 84 - (void)stopAecDump; | 76 - (void)stopAecDump; |
| 85 | 77 |
| 86 @end | 78 @end |
| 87 | 79 |
| 88 NS_ASSUME_NONNULL_END | 80 NS_ASSUME_NONNULL_END |
| OLD | NEW |