KSVideoRecordManager.h 954 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // KSVideoRecordManager.h
  3. // TeacherDaya
  4. //
  5. // Created by Kyle on 2021/8/16.
  6. // Copyright © 2021 DayaMusic. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef void(^KSVideoRecordCallback)(BOOL isSuccess, NSString * _Nullable message);
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface KSVideoRecordManager : NSObject
  12. @property (nonatomic, strong) NSURL *bgAudioUrl;
  13. @property (nonatomic, strong) NSURL *audioUrl;
  14. @property (nonatomic, assign) BOOL ignoreAudio;
  15. @property (nonatomic, assign) BOOL skipSaveRecord;
  16. - (BOOL)getSessionStatusisActive;
  17. - (instancetype)initSessionRecordCallback:(KSVideoRecordCallback)callback;
  18. - (void)configSessiondisplayInView:(UIView *)containerView;
  19. - (void)removeDisplay;
  20. - (void)stopSession;
  21. - (void)resetSession;
  22. - (void)startRecord;
  23. - (void)stopRecord;
  24. - (void)uploadRecordVideoSuccess:(void(^)(NSString *videoUrl))success failure:(void(^)(NSString *desc))faliure;
  25. @end
  26. NS_ASSUME_NONNULL_END