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

Unified Diff: webrtc/api/objc/RTCMediaSource.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
Index: webrtc/api/objc/RTCMediaSource.h
diff --git a/webrtc/base/objc/NSString+StdString.h b/webrtc/api/objc/RTCMediaSource.h
similarity index 60%
copy from webrtc/base/objc/NSString+StdString.h
copy to webrtc/api/objc/RTCMediaSource.h
index 532032b3fca66977290d612f1e998c205cceef00..0b36b8d7093543c803f6097d28488efef8678306 100644
--- a/webrtc/base/objc/NSString+StdString.h
+++ b/webrtc/api/objc/RTCMediaSource.h
@@ -10,15 +10,21 @@
#import <Foundation/Foundation.h>
-#include <string>
+typedef NS_ENUM(NSInteger, RTCSourceState) {
+ RTCSourceStateInitializing,
+ RTCSourceStateLive,
+ RTCSourceStateEnded,
+ RTCSourceStateMuted,
+};
NS_ASSUME_NONNULL_BEGIN
-@interface NSString (StdString)
+@interface RTCMediaSource : NSObject
-@property(nonatomic, readonly) std::string stdString;
+/** The current state of the RTCMediaSource. */
+@property(nonatomic, readonly) RTCSourceState state;
-+ (std::string)stdStringForString:(NSString *)nsString;
+- (instancetype)init NS_UNAVAILABLE;
@end

Powered by Google App Engine
This is Rietveld 408576698