AliyunDraft
@interface AliyunDraft : NSObject
本地草稿对象
-
工程ID
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *projectId;
-
草稿标题
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *title;
-
创建时间
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *createTime;
-
修改时间
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *modifiedTime;
-
剪辑持续时间
Declaration
Objective-C
@property (nonatomic, readonly) NSTimeInterval duration;
-
剪辑所有资源大小总和
Declaration
Objective-C
@property (nonatomic, readonly) size_t size;
-
封面图路径
Declaration
Objective-C
@property (nonatomic, strong, readonly) AEPSource *cover;
-
如果来之剪同款,记录的模板来源
Declaration
Objective-C
@property (nonatomic, strong, readonly) AEPSource *templateSource;
-
修改工程ID
Declaration
Objective-C
- (void)changeProjectId:(NSString *)projectId;
Parameters
projectId
工程ID
-
重命名标题
Declaration
Objective-C
- (void)renameTitle:(NSString *)title;
Parameters
title
新的标题
-
更新封面图片,空表示自动获取编辑首帧画面
Declaration
Objective-C
- (void)updateCover:(UIImage *)coverImage;
-
上传草稿
Declaration
Objective-C
- (void)uploadWithResourceUploader:(DraftTaskLoader)resourceUploader projectUploader: (void (^)(AliyunDraftProjectUploadTask *))projectUploader completion:(void (^)(NSError *))completion;
Parameters
resourceUploader
资源上传器
projectUploader
工程上传器
completion
上传完成回调
-
加载草稿
Declaration
Objective-C
- (void)load:(DraftTaskLoader)loader completion:(LocalDraftLoadCallback)completion;
Parameters
loader
加载器,需要调用方实现;实现草稿资源的加载
completion
完成回到