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 13 #import <WebRTC/RTCMacros.h> 14 15 @class RTC_OBJC_TYPE(RTCFileVideoCapturer); 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 */ 28 - (instancetype)initWithCapturer:(RTC_OBJC_TYPE(RTCFileVideoCapturer) *)capturer; 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 43