Index: webrtc/api/objc/RTCVideoSource.mm |
diff --git a/webrtc/base/objc/NSString+StdString.h b/webrtc/api/objc/RTCVideoSource.mm |
similarity index 54% |
copy from webrtc/base/objc/NSString+StdString.h |
copy to webrtc/api/objc/RTCVideoSource.mm |
index 8bf6cc94be0346e398ab1a980af6378f06ccb7a5..0e11d0e0131f2eb111584b44647cc01d50902dfb 100644 |
--- a/webrtc/base/objc/NSString+StdString.h |
+++ b/webrtc/api/objc/RTCVideoSource.mm |
@@ -8,19 +8,18 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#import <Foundation/Foundation.h> |
+#import "RTCVideoSource.h" |
-#include <string> |
+#import "webrtc/api/objc/RTCMediaSource+Private.h" |
+#import "webrtc/api/objc/RTCVideoSource+Private.h" |
-NS_ASSUME_NONNULL_BEGIN |
+@implementation RTCVideoSource |
-@interface NSString (StdString) |
+#pragma mark - Private |
-@property(nonatomic, readonly) std::string stdString; |
- |
-+ (std::string)stdStringForString:(NSString *)nsString; |
-+ (NSString *)stringForStdString:(const std::string&)stdString; |
+- (rtc::scoped_refptr<webrtc::VideoSourceInterface>)nativeVideoSource { |
+ return |
tkchin_webrtc
2016/01/11 21:32:34
nit: use a local var and return that instead to av
hjon
2016/01/11 22:45:08
Done.
|
+ static_cast<webrtc::VideoSourceInterface *>(self.nativeMediaSource.get()); |
+} |
@end |
- |
-NS_ASSUME_NONNULL_END |