ObjC: RTCVideoSource cleanup

RTCVideoSource was recently added in
https://codereview.webrtc.org/2745193002/. This CL addresses some post
commit feedback.

BUG=webrtc:7177

Review-Url: https://codereview.webrtc.org/2812533003
Cr-Commit-Position: refs/heads/master@{#17649}
This commit is contained in:
magjed
2017-04-11 04:50:15 -07:00
committed by Commit bot
parent 29dbb1992a
commit 24da37b0bf
6 changed files with 19 additions and 18 deletions

View File

@ -15,14 +15,17 @@ NS_ASSUME_NONNULL_BEGIN
@class RTCVideoCapturer;
RTC_EXPORT
@protocol RTCVideoCapturerDelegate
@protocol RTCVideoCapturerDelegate <NSObject>
- (void)capturer:(RTCVideoCapturer *)capturer didCaptureVideoFrame:(RTCVideoFrame *)frame;
@end
RTC_EXPORT
@interface RTCVideoCapturer : NSObject
- (instancetype)initWithDelegate:(id<RTCVideoCapturerDelegate>)delegate;
@property(nonatomic, readonly, weak) id<RTCVideoCapturerDelegate> delegate;
- (instancetype)initWithDelegate:(id<RTCVideoCapturerDelegate>)delegate;
@end
NS_ASSUME_NONNULL_END