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

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

Issue 1558733002: Update API for Objective-C RTCMediaStream. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix build issues 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
« no previous file with comments | « webrtc/api/objc/RTCMediaStream.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/RTCMediaStream+Private.h
diff --git a/webrtc/api/objc/RTCAudioTrack+Private.h b/webrtc/api/objc/RTCMediaStream+Private.h
similarity index 55%
copy from webrtc/api/objc/RTCAudioTrack+Private.h
copy to webrtc/api/objc/RTCMediaStream+Private.h
index 36f72c7f2560d775d4e120303173ade21487b259..2c2662b6fa7a86fbd3891da3c0a97305062c9574 100644
--- a/webrtc/api/objc/RTCAudioTrack+Private.h
+++ b/webrtc/api/objc/RTCMediaStream+Private.h
@@ -8,17 +8,24 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#import "RTCAudioTrack.h"
+#import "RTCMediaStream.h"
#include "talk/app/webrtc/mediastreaminterface.h"
NS_ASSUME_NONNULL_BEGIN
-@interface RTCAudioTrack ()
+@interface RTCMediaStream ()
-/** AudioTrackInterface created or passed in at construction. */
+/**
+ * MediaStreamInterface representation of this RTCMediaStream object. This is
+ * needed to pass to the underlying C++ APIs.
+ */
@property(nonatomic, readonly)
- rtc::scoped_refptr<webrtc::AudioTrackInterface> nativeAudioTrack;
+ rtc::scoped_refptr<webrtc::MediaStreamInterface> nativeMediaStream;
+
+/** Initialize an RTCMediaStream from a native MediaStreamInterface. */
+- (instancetype)initWithNativeMediaStream:
+ (rtc::scoped_refptr<webrtc::MediaStreamInterface>)nativeMediaStream;
@end
« no previous file with comments | « webrtc/api/objc/RTCMediaStream.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698