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