blob: 82f8fcdd1baf98f91a2453fda0f7c18a882e5a28 [file] [log] [blame]
Daniela012b56b2017-11-15 13:15:24 +01001/*
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 Bonadei19640aa2020-10-19 16:12:43 +020013#import "sdk/objc/base/RTCMacros.h"
Mirko Bonadeia81e9c82020-05-04 16:14:32 +020014
15@class RTC_OBJC_TYPE(RTCFileVideoCapturer);
Daniela012b56b2017-11-15 13:15:24 +010016
17/**
18 * Controls a file capturer.
19 */
20NS_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 Bonadeia81e9c82020-05-04 16:14:32 +020028- (instancetype)initWithCapturer:(RTC_OBJC_TYPE(RTCFileVideoCapturer) *)capturer;
Daniela012b56b2017-11-15 13:15:24 +010029
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