Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Unified Diff: webrtc/api/objc/RTCPeerConnectionFactory.h

Issue 1820193002: Refactor some ObjC API init methods. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/objc/RTCPeerConnection+Private.h ('k') | webrtc/api/objc/RTCPeerConnectionFactory.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « webrtc/api/objc/RTCPeerConnection+Private.h ('k') | webrtc/api/objc/RTCPeerConnectionFactory.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698