RCVideoRecoderManager.h 717 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // RecoderManager.h
  3. // VclustersGemini
  4. //
  5. // Created by APPLE on 2019/12/23.
  6. // Copyright © 2019 APPLE. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <VideoToolbox/VideoToolbox.h>
  10. #import <AVFoundation/AVFoundation.h>
  11. NS_ASSUME_NONNULL_BEGIN
  12. @protocol RecoderManagerDelegate <NSObject>
  13. - (void)videoOutPutH264Data:(void *)h264Data dataLenth:(NSInteger)lenth;
  14. @end
  15. @interface RCVideoRecoderManager : NSObject
  16. @property (nonatomic, assign, readonly) BOOL isRecoding;
  17. @property (nonatomic, weak) id<RecoderManagerDelegate> delegate;
  18. - (void)startRecording;
  19. - (void)stopRecording;
  20. - (id)initWithAVCaptureDevicePosition:(AVCaptureDevicePosition)position;
  21. @end
  22. NS_ASSUME_NONNULL_END