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 10 matching lines...) Expand all Loading... | |
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 | 27 |
28 RTC_EXPORT | 28 RTC_EXPORT |
29 @interface RTCPeerConnectionFactory : NSObject | 29 @interface RTCPeerConnectionFactory : NSObject |
30 | 30 |
31 - (instancetype)init NS_DESIGNATED_INITIALIZER; | |
32 | |
33 /** Initialize an RTCAudioSource with constraints. */ | 31 /** Initialize an RTCAudioSource with constraints. */ |
34 - (RTCAudioSource *)audioSourceWithConstraints:(nullable RTCMediaConstraints *)c onstraints; | 32 - (RTCAudioSource *)audioSourceWithConstraints:(nullable RTCMediaConstraints *)c onstraints; |
35 | 33 |
36 /** Initialize an RTCAudioTrack with an id. Convenience ctor to use an audio sou rce with no | 34 /** Initialize an RTCAudioTrack with an id. Convenience ctor to use an audio sou rce with no |
37 * constraints. | 35 * constraints. |
38 */ | 36 */ |
39 - (RTCAudioTrack *)audioTrackWithTrackId:(NSString *)trackId; | 37 - (RTCAudioTrack *)audioTrackWithTrackId:(NSString *)trackId; |
40 | 38 |
41 /** Initialize an RTCAudioTrack with a source and an id. */ | 39 /** Initialize an RTCAudioTrack with a source and an id. */ |
42 - (RTCAudioTrack *)audioTrackWithSource:(RTCAudioSource *)source | 40 - (RTCAudioTrack *)audioTrackWithSource:(RTCAudioSource *)source |
43 trackId:(NSString *)trackId; | 41 trackId:(NSString *)trackId; |
44 | 42 |
43 /** Initialize an RTCPeerConnection with a configuration, constraints, and | |
44 * delegate. | |
45 */ | |
46 - (RTCPeerConnection *)peerConnectionWithConfiguration:(RTCConfiguration *)confi guration | |
47 constraints:(RTCMediaConstraints *)co nstraints | |
48 delegate: | |
49 (nullable id<RTCPeerConnection Delegate>)delegate; | |
50 | |
51 /** Start an AecDump recording. This API call will likely change in the future. */ | |
52 - (BOOL)startAecDumpWithFilePath:(NSString *)filePath maxSizeInBytes:(int64_t)ma xSizeInBytes; | |
53 | |
54 /* Stop an active AecDump recording */ | |
55 - (void)stopAecDump; | |
56 | |
57 @end | |
58 | |
59 @interface RTCPeerConnectionFactory (Media) | |
60 | |
61 - (instancetype)init; | |
tkchin_webrtc
2017/06/20 21:51:24
do not place designated ctors in category
| |
62 | |
63 /** Initialize an RTCMediaStream with an id. */ | |
64 - (RTCMediaStream *)mediaStreamWithStreamId:(NSString *)streamId; | |
65 | |
66 @end | |
67 | |
68 @interface RTCPeerConnectionFactory (Video) | |
69 | |
45 /** Initialize an RTCAVFoundationVideoSource with constraints. */ | 70 /** Initialize an RTCAVFoundationVideoSource with constraints. */ |
46 - (RTCAVFoundationVideoSource *)avFoundationVideoSourceWithConstraints: | 71 - (RTCAVFoundationVideoSource *)avFoundationVideoSourceWithConstraints: |
47 (nullable RTCMediaConstraints *)constraints; | 72 (nullable RTCMediaConstraints *)constraints; |
48 | 73 |
49 /** Initialize a generic RTCVideoSource. The RTCVideoSource should be passed to a RTCVideoCapturer | 74 /** Initialize a generic RTCVideoSource. The RTCVideoSource should be passed to a RTCVideoCapturer |
50 * implementation, e.g. RTCCameraVideoCapturer, in order to produce frames. | 75 * implementation, e.g. RTCCameraVideoCapturer, in order to produce frames. |
51 */ | 76 */ |
52 - (RTCVideoSource *)videoSource; | 77 - (RTCVideoSource *)videoSource; |
53 | 78 |
54 /** Initialize an RTCVideoTrack with a source and an id. */ | 79 /** Initialize an RTCVideoTrack with a source and an id. */ |
55 - (RTCVideoTrack *)videoTrackWithSource:(RTCVideoSource *)source | 80 - (RTCVideoTrack *)videoTrackWithSource:(RTCVideoSource *)source |
56 trackId:(NSString *)trackId; | 81 trackId:(NSString *)trackId; |
57 | 82 |
58 /** Initialize an RTCMediaStream with an id. */ | |
59 - (RTCMediaStream *)mediaStreamWithStreamId:(NSString *)streamId; | |
60 | |
61 /** Initialize an RTCPeerConnection with a configuration, constraints, and | |
62 * delegate. | |
63 */ | |
64 - (RTCPeerConnection *)peerConnectionWithConfiguration: | |
65 (RTCConfiguration *)configuration | |
66 constraints: | |
67 (RTCMediaConstraints *)constraints | |
68 delegate: | |
69 (nullable id<RTCPeerConnectionDelegate>)delegate; | |
70 | |
71 /** Start an AecDump recording. This API call will likely change in the future. */ | |
72 - (BOOL)startAecDumpWithFilePath:(NSString *)filePath | |
73 maxSizeInBytes:(int64_t)maxSizeInBytes; | |
74 | |
75 /* Stop an active AecDump recording */ | |
76 - (void)stopAecDump; | |
77 | |
78 @end | 83 @end |
79 | 84 |
80 NS_ASSUME_NONNULL_END | 85 NS_ASSUME_NONNULL_END |
OLD | NEW |