magjed | abb84b8 | 2017-03-28 01:56:41 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 13 | NS_ASSUME_NONNULL_BEGIN |
| 14 | |
| 15 | @class RTCVideoCapturer; |
| 16 | |
| 17 | RTC_EXPORT |
magjed | 24da37b | 2017-04-11 04:50:15 -0700 | [diff] [blame] | 18 | @protocol RTCVideoCapturerDelegate <NSObject> |
magjed | abb84b8 | 2017-03-28 01:56:41 -0700 | [diff] [blame] | 19 | - (void)capturer:(RTCVideoCapturer *)capturer didCaptureVideoFrame:(RTCVideoFrame *)frame; |
| 20 | @end |
| 21 | |
magjed | 24da37b | 2017-04-11 04:50:15 -0700 | [diff] [blame] | 22 | RTC_EXPORT |
magjed | abb84b8 | 2017-03-28 01:56:41 -0700 | [diff] [blame] | 23 | @interface RTCVideoCapturer : NSObject |
magjed | 24da37b | 2017-04-11 04:50:15 -0700 | [diff] [blame] | 24 | |
magjed | abb84b8 | 2017-03-28 01:56:41 -0700 | [diff] [blame] | 25 | @property(nonatomic, readonly, weak) id<RTCVideoCapturerDelegate> delegate; |
magjed | 24da37b | 2017-04-11 04:50:15 -0700 | [diff] [blame] | 26 | |
| 27 | - (instancetype)initWithDelegate:(id<RTCVideoCapturerDelegate>)delegate; |
| 28 | |
magjed | abb84b8 | 2017-03-28 01:56:41 -0700 | [diff] [blame] | 29 | @end |
| 30 | |
| 31 | NS_ASSUME_NONNULL_END |