Index: webrtc/api/objc/RTCMediaSource+Private.h |
diff --git a/webrtc/api/objc/RTCMediaSource+Private.h b/webrtc/api/objc/RTCMediaSource+Private.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2df0367c022a18ec54ce657ab19aa0b595cfc7f5 |
--- /dev/null |
+++ b/webrtc/api/objc/RTCMediaSource+Private.h |
@@ -0,0 +1,41 @@ |
+/* |
+ * Copyright 2015 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 |
+ * tree. An additional intellectual property rights grant can be found |
+ * in the file PATENTS. All contributing project authors may |
+ * be found in the AUTHORS file in the root of the source tree. |
+ */ |
+ |
+#import "RTCMediaSource.h" |
+ |
+#include "talk/app/webrtc/mediastreaminterface.h" |
+ |
+NS_ASSUME_NONNULL_BEGIN |
+ |
+@interface RTCMediaSource () |
+ |
+/** |
+ * MediaSourceInterface representation of this RTCMediaSource object. This is |
+ * needed to pass to the underlying C++ APIs. |
+ */ |
+@property(nonatomic, readonly) |
+ rtc::scoped_refptr<webrtc::MediaSourceInterface> nativeMediaSource; |
+ |
+/** Initialize an RTCMediaSource from a native MediaSourceInterface. */ |
+- (instancetype)initWithMediaSource: |
tkchin_webrtc
2016/01/05 18:44:34
initWithNativeMediaSource
hjon
2016/01/06 00:17:15
Done.
|
+ (rtc::scoped_refptr<webrtc::MediaSourceInterface>)mediaSource |
+ NS_DESIGNATED_INITIALIZER; |
+ |
++ (webrtc::MediaSourceInterface::SourceState)nativeSourceStateForObjCSourceState: |
+ (RTCSourceState)state; |
+ |
++ (RTCSourceState)objCSourceStateForNativeSourceState: |
+ (webrtc::MediaSourceInterface::SourceState)nativeState; |
+ |
++ (NSString *)descriptionForObjCSourceState:(RTCSourceState)state; |
+ |
+@end |
+ |
+NS_ASSUME_NONNULL_END |