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

Unified Diff: webrtc/sdk/objc/Framework/Classes/RTCMediaSource+Private.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/Classes/RTCMediaSource+Private.h
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCVideoSource+Private.h b/webrtc/sdk/objc/Framework/Classes/RTCMediaSource+Private.h
similarity index 60%
copy from webrtc/sdk/objc/Framework/Classes/RTCVideoSource+Private.h
copy to webrtc/sdk/objc/Framework/Classes/RTCMediaSource+Private.h
index 757c1746ef76e2667aed38e19d0420e38571803c..55d268a495fe82823bcf35a4c2f397d3d1c9d1fa 100644
--- a/webrtc/sdk/objc/Framework/Classes/RTCVideoSource+Private.h
+++ b/webrtc/sdk/objc/Framework/Classes/RTCMediaSource+Private.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 The WebRTC project authors. All Rights Reserved.
+ * Copyright 2016 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
@@ -8,25 +8,25 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#import "WebRTC/RTCVideoSource.h"
+#import "WebRTC/RTCMediaSource.h"
#include "webrtc/api/mediastreaminterface.h"
NS_ASSUME_NONNULL_BEGIN
-@interface RTCVideoSource ()
+typedef NS_ENUM(NSInteger, RTCMediaSourceType) {
+ RTCMediaSourceTypeAudio,
+ RTCMediaSourceTypeVideo,
+};
+
+@interface RTCMediaSource ()
-/**
- * The VideoTrackSourceInterface object passed to this RTCVideoSource during
- * construction.
- */
@property(nonatomic, readonly)
- rtc::scoped_refptr<webrtc::VideoTrackSourceInterface>
- nativeVideoSource;
+ rtc::scoped_refptr<webrtc::MediaSourceInterface> nativeMediaSource;
-/** Initialize an RTCVideoSource from a native VideoTrackSourceInterface. */
-- (instancetype)initWithNativeVideoSource:
- (rtc::scoped_refptr<webrtc::VideoTrackSourceInterface>)nativeVideoSource
+- (instancetype)initWithNativeMediaSource:
+ (rtc::scoped_refptr<webrtc::MediaSourceInterface>)nativeMediaSource
+ type:(RTCMediaSourceType)type
NS_DESIGNATED_INITIALIZER;
+ (webrtc::MediaSourceInterface::SourceState)nativeSourceStateForState:
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/RTCMediaSource.mm ('k') | webrtc/sdk/objc/Framework/Classes/RTCPeerConnectionFactory.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698