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

Unified Diff: webrtc/api/objc/RTCAudioTrack.h

Issue 1553743003: Update API for Objective-C RTCAudioTrack and RTCVideoTrack. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@updateRTCMediaStreamTrack
Patch Set: Get around unused variable error 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/api.gyp ('k') | webrtc/api/objc/RTCAudioTrack.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/objc/RTCAudioTrack.h
diff --git a/webrtc/api/objc/RTCVideoSource.h b/webrtc/api/objc/RTCAudioTrack.h
similarity index 61%
copy from webrtc/api/objc/RTCVideoSource.h
copy to webrtc/api/objc/RTCAudioTrack.h
index a98fa6c6bba626c52ea4331bb1b3d4d6bd0bd1a9..76036ccec88921ee6af373891b22fa40bc7ed21c 100644
--- a/webrtc/api/objc/RTCVideoSource.h
+++ b/webrtc/api/objc/RTCAudioTrack.h
@@ -8,24 +8,20 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#import <Foundation/Foundation.h>
-
-typedef NS_ENUM(NSInteger, RTCSourceState) {
- RTCSourceStateInitializing,
- RTCSourceStateLive,
- RTCSourceStateEnded,
- RTCSourceStateMuted,
-};
+#import "RTCMediaStreamTrack.h"
NS_ASSUME_NONNULL_BEGIN
-@interface RTCVideoSource : NSObject
+@class RTCPeerConnectionFactory;
-/** The current state of the RTCVideoSource. */
-@property(nonatomic, readonly) RTCSourceState state;
+@interface RTCAudioTrack : RTCMediaStreamTrack
- (instancetype)init NS_UNAVAILABLE;
+/** Initialize an RTCAudioTrack with an id. */
+- (instancetype)initWithFactory:(RTCPeerConnectionFactory *)factory
+ trackId:(NSString *)trackId;
+
@end
NS_ASSUME_NONNULL_END
« no previous file with comments | « webrtc/api/api.gyp ('k') | webrtc/api/objc/RTCAudioTrack.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698