Daniela | 012b56b | 2017-11-15 13:15:24 +0100 | [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 <Foundation/Foundation.h> |
| 12 | |
Mirko Bonadei | 19640aa | 2020-10-19 16:12:43 +0200 | [diff] [blame] | 13 | #import "sdk/objc/base/RTCMacros.h" |
Mirko Bonadei | a81e9c8 | 2020-05-04 16:14:32 +0200 | [diff] [blame] | 14 | |
| 15 | @class RTC_OBJC_TYPE(RTCFileVideoCapturer); |
Daniela | 012b56b | 2017-11-15 13:15:24 +0100 | [diff] [blame] | 16 | |
| 17 | /** |
| 18 | * Controls a file capturer. |
| 19 | */ |
| 20 | NS_CLASS_AVAILABLE_IOS(10) |
| 21 | @interface ARDFileCaptureController : NSObject |
| 22 | |
| 23 | /** |
| 24 | * Creates instance of the controller. |
| 25 | * |
| 26 | * @param capturer The capturer to be controlled. |
| 27 | */ |
Mirko Bonadei | a81e9c8 | 2020-05-04 16:14:32 +0200 | [diff] [blame] | 28 | - (instancetype)initWithCapturer:(RTC_OBJC_TYPE(RTCFileVideoCapturer) *)capturer; |
Daniela | 012b56b | 2017-11-15 13:15:24 +0100 | [diff] [blame] | 29 | |
| 30 | /** |
| 31 | * Starts the file capturer. |
| 32 | * |
| 33 | * Possible errors produced by the capturer will be logged. |
| 34 | */ |
| 35 | - (void)startCapture; |
| 36 | |
| 37 | /** |
| 38 | * Immediately stops capturer. |
| 39 | */ |
| 40 | - (void)stopCapture; |
| 41 | |
| 42 | @end |