Index: webrtc/api/objc/RTCPeerConnectionFactory.h |
diff --git a/webrtc/api/objc/RTCPeerConnectionFactory.h b/webrtc/api/objc/RTCPeerConnectionFactory.h |
index c427c1bb9106becaafc2a2c096fb0421b171f504..8897c999e0a984173845fc39b5eef314fd4e8df5 100644 |
--- a/webrtc/api/objc/RTCPeerConnectionFactory.h |
+++ b/webrtc/api/objc/RTCPeerConnectionFactory.h |
@@ -12,7 +12,48 @@ |
NS_ASSUME_NONNULL_BEGIN |
+#if defined(WEBRTC_IOS) |
+@class RTCAVFoundationVideoSource; |
+#endif |
+@class RTCAudioTrack; |
+@class RTCConfiguration; |
+@class RTCMediaConstraints; |
+@class RTCMediaStream; |
+@class RTCPeerConnection; |
+@class RTCVideoSource; |
+@class RTCVideoTrack; |
+@protocol RTCPeerConnectionDelegate; |
+ |
@interface RTCPeerConnectionFactory : NSObject |
+ |
+- (instancetype)init NS_DESIGNATED_INITIALIZER; |
+ |
+#if defined(WEBRTC_IOS) |
+/** Initialize an RTCAVFoundationVideoSource with constraints. */ |
+- (RTCAVFoundationVideoSource *)avFoundationVideoSourceWithConstraints: |
+ (nullable RTCMediaConstraints *)constraints; |
+#endif |
+ |
+/** Initialize an RTCAudioTrack with an id. */ |
+- (RTCAudioTrack *)audioTrackWithTrackId:(NSString *)trackId; |
+ |
+/** Initialize an RTCVideoTrack with a source and an id. */ |
+- (RTCVideoTrack *)videoTrackWithSource:(RTCVideoSource *)source |
+ trackId:(NSString *)trackId; |
+ |
+/** Initialize an RTCMediaStream with an id. */ |
+- (RTCMediaStream *)mediaStreamWithStreamId:(NSString *)streamId; |
+ |
+/** Initialize an RTCPeerConnection with a configuration, constraints, and |
+ * delegate. |
+ */ |
+- (RTCPeerConnection *)peerConnectionWithConfiguration: |
+ (RTCConfiguration *)configuration |
+ constraints: |
+ (RTCMediaConstraints *)constraints |
+ delegate: |
+ (nullable id<RTCPeerConnectionDelegate>)delegate; |
+ |
@end |
NS_ASSUME_NONNULL_END |