blob: f0a2eaa14c62cf7f8084c7dcf46260132a31faa2 [file] [log] [blame]
magjedabb84b82017-03-28 01:56:41 -07001/*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#import <WebRTC/RTCVideoFrame.h>
12
13NS_ASSUME_NONNULL_BEGIN
14
15@class RTCVideoCapturer;
16
17RTC_EXPORT
magjed24da37b2017-04-11 04:50:15 -070018@protocol RTCVideoCapturerDelegate <NSObject>
magjedabb84b82017-03-28 01:56:41 -070019- (void)capturer:(RTCVideoCapturer *)capturer didCaptureVideoFrame:(RTCVideoFrame *)frame;
20@end
21
magjed24da37b2017-04-11 04:50:15 -070022RTC_EXPORT
magjedabb84b82017-03-28 01:56:41 -070023@interface RTCVideoCapturer : NSObject
magjed24da37b2017-04-11 04:50:15 -070024
Anders Carlsson73119182018-03-15 09:41:03 +010025@property(nonatomic, weak) id<RTCVideoCapturerDelegate> delegate;
magjed24da37b2017-04-11 04:50:15 -070026
27- (instancetype)initWithDelegate:(id<RTCVideoCapturerDelegate>)delegate;
28
magjedabb84b82017-03-28 01:56:41 -070029@end
30
31NS_ASSUME_NONNULL_END