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