KSMediaMergeView.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // KSMediaMergeView.h
  3. // KulexiuSchoolStudent
  4. //
  5. // Created by 王智 on 2023/8/29.
  6. //
  7. #import <UIKit/UIKit.h>
  8. typedef void(^MergeCallback)(BOOL isPublished);
  9. typedef void(^DraftEditCallback)(void);
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface KSMediaMergeView : UIView
  12. @property (nonatomic, strong) NSString *recordId;
  13. @property (nonatomic, strong) NSString *songName;
  14. @property (nonatomic, strong) NSString *coverImage;
  15. @property (nonatomic, strong) NSString *desc;
  16. @property (nonatomic, assign) float musicSpeed;
  17. // 偏移时间 (录制声音和伴奏声音的偏移)offsetTime 收音延迟+ 播放延迟 ms
  18. - (void)configWithVideoUrl:(NSURL *)videoUrl bgAudioUrl:(NSURL *)bgAudioUrl remoteBgUrl:(NSString *)remoteBgUrl recordUrl:(NSURL *)recordUrl offsetTime:(NSInteger)offsetTime mergeCallback:(MergeCallback)callback;
  19. - (void)configRemoteVideoUrl:(NSString *)remoteVideoUrl bgAudioUrl:(NSString *)remoteBgAudioUrl recordUrl:(NSString *)remoteRecrodUrl jsonConfig:(NSString *)jsonConfig callback:(DraftEditCallback)callback;
  20. @end
  21. NS_ASSUME_NONNULL_END