TUIMovieManager.h 739 B

1234567891011121314151617181920212223242526
  1. // Created by Tencent on 2023/06/09.
  2. // Copyright © 2023 Tencent. All rights reserved.
  3. #import <AVFoundation/AVFoundation.h>
  4. #import <Foundation/Foundation.h>
  5. NS_ASSUME_NONNULL_BEGIN
  6. @interface TUIMovieManager : NSObject
  7. @property(nonatomic, assign) AVCaptureVideoOrientation referenceOrientation;
  8. @property(nonatomic, assign) AVCaptureVideoOrientation currentOrientation;
  9. @property(nonatomic, strong) AVCaptureDevice *currentDevice;
  10. - (void)start:(void (^)(NSError *error))handle;
  11. - (void)stop:(void (^)(NSURL *url, NSError *error))handle;
  12. - (void)writeData:(AVCaptureConnection *)connection video:(AVCaptureConnection *)video audio:(AVCaptureConnection *)audio buffer:(CMSampleBufferRef)buffer;
  13. @end
  14. NS_ASSUME_NONNULL_END