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

Unified Diff: webrtc/api/objc/RTCMediaSource+Private.h

Issue 1546783002: Move RTCVideoSource to webrtc/api/objc. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@updateRTCMediaSource
Patch Set: Changes based on feedback Created 4 years, 11 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/api/objc/RTCMediaSource+Private.h
diff --git a/webrtc/api/objc/RTCMediaSource+Private.h b/webrtc/api/objc/RTCMediaSource+Private.h
index fcbaad8e4587a6d426dd51eb0a0e0b945f5c2b19..55f483a090e6e9b00ac6b2ba16644713e6e6a888 100644
--- a/webrtc/api/objc/RTCMediaSource+Private.h
+++ b/webrtc/api/objc/RTCMediaSource+Private.h
@@ -11,6 +11,7 @@
#import "RTCMediaSource.h"
#include "talk/app/webrtc/mediastreaminterface.h"
+#include "talk/app/webrtc/videosourceinterface.h"
NS_ASSUME_NONNULL_BEGIN
@@ -23,10 +24,12 @@ NS_ASSUME_NONNULL_BEGIN
@property(nonatomic, readonly)
rtc::scoped_refptr<webrtc::MediaSourceInterface> nativeMediaSource;
-/** Initialize an RTCMediaSource from a native MediaSourceInterface. */
-- (instancetype)initWithNativeMediaSource:
- (rtc::scoped_refptr<webrtc::MediaSourceInterface>)nativeMediaSource
- NS_DESIGNATED_INITIALIZER;
+/**
+ * If this is an RTCVideoSource instance, the VideoSourceInterface object passed
+ * in during construction.
+ */
+@property(nonatomic, readonly)
+ rtc::scoped_refptr<webrtc::VideoSourceInterface> nativeVideoSource;
tkchin_webrtc 2016/01/13 02:26:27 this shouldn't be here - only in RTCVideoSource
hjon 2016/01/13 18:07:00 Done.
+ (webrtc::MediaSourceInterface::SourceState)nativeSourceStateForState:
(RTCSourceState)state;

Powered by Google App Engine
This is Rietveld 408576698