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

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

Issue 1538263002: Update API for Objective-C RTCMediaSource. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years 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
« webrtc/api/objc/RTCMediaSource.mm ('K') | « webrtc/api/objc/RTCMediaSource.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« webrtc/api/objc/RTCMediaSource.mm ('K') | « webrtc/api/objc/RTCMediaSource.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698