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

Unified Diff: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h

Issue 2290583003: iOS: Add ability to specify audio constraints. (Closed)
Patch Set: Update ctor order. Created 4 years, 4 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
Index: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h
diff --git a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h
index abf2373f3c092e12c4435e11eb6602d530593967..03279a3c7bfc3926ebc9a4220786604ee8236d1c 100644
--- a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h
+++ b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h
@@ -15,6 +15,7 @@
NS_ASSUME_NONNULL_BEGIN
@class RTCAVFoundationVideoSource;
+@class RTCAudioSource;
@class RTCAudioTrack;
@class RTCConfiguration;
@class RTCMediaConstraints;
@@ -29,13 +30,22 @@ RTC_EXPORT
- (instancetype)init NS_DESIGNATED_INITIALIZER;
+/** Initialize an RTCAudioSource with constraints. */
+- (RTCAudioSource *)audioSourceWithConstraints:(nullable RTCMediaConstraints *)constraints;
+
+/** Initialize an RTCAudioTrack with an id. Convenience ctor to use an audio source with no
+ * constraints.
+ */
+- (RTCAudioTrack *)audioTrackWithTrackId:(NSString *)trackId;
+
+/** Initialize an RTCAudioTrack with a source and an id. */
+- (RTCAudioTrack *)audioTrackWithSource:(RTCAudioSource *)source
+ trackId:(NSString *)trackId;
+
/** Initialize an RTCAVFoundationVideoSource with constraints. */
- (RTCAVFoundationVideoSource *)avFoundationVideoSourceWithConstraints:
(nullable RTCMediaConstraints *)constraints;
-/** 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;
« no previous file with comments | « webrtc/sdk/objc/Framework/Headers/WebRTC/RTCMediaSource.h ('k') | webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698