ARDFileCaptureController.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #import <Foundation/Foundation.h>
  11. #import <WebRTC/RTCMacros.h>
  12. @class RTC_OBJC_TYPE(RTCFileVideoCapturer);
  13. /**
  14. * Controls a file capturer.
  15. */
  16. NS_CLASS_AVAILABLE_IOS(10)
  17. @interface ARDFileCaptureController : NSObject
  18. /**
  19. * Creates instance of the controller.
  20. *
  21. * @param capturer The capturer to be controlled.
  22. */
  23. - (instancetype)initWithCapturer:(RTC_OBJC_TYPE(RTCFileVideoCapturer) *)capturer;
  24. /**
  25. * Starts the file capturer.
  26. *
  27. * Possible errors produced by the capturer will be logged.
  28. */
  29. - (void)startCapture;
  30. /**
  31. * Immediately stops capturer.
  32. */
  33. - (void)stopCapture;
  34. @end